mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-10 04:51:20 +00:00
3980fa7d45
* implementation * tidy gomod * linters * fix cmd test * fix * fix lint
14 lines
327 B
Go
14 lines
327 B
Go
package commands
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/ledgerwatch/turbo-geth/common"
|
|
"github.com/ledgerwatch/turbo-geth/common/hexutil"
|
|
)
|
|
|
|
func (api *APIImpl) SendRawTransaction(_ context.Context, encodedTx hexutil.Bytes) (common.Hash, error) {
|
|
res, err := api.txpool.AddLocal(encodedTx)
|
|
return common.BytesToHash(res), err
|
|
}
|