Skip to content

Commit

Permalink
make generate
Browse files Browse the repository at this point in the history
  • Loading branch information
skosito committed May 28, 2024
1 parent da06e60 commit 85f8bf8
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions rpc/backend/blocks.go
Original file line number Diff line number Diff line change
Expand Up @@ -337,15 +337,22 @@ func (b *Backend) EthMsgsFromTendermintBlock(
return result, txsAdditional
}

func (b *Backend) parseSyntheticTx(txResults []*abci.ResponseDeliverTx, i int, tx sdk.Tx, block *tmtypes.Block) (*evmtypes.MsgEthereumTx, *rpctypes.TxResultAdditionalFields) {
func (b *Backend) parseSyntheticTx(
txResults []*abci.ResponseDeliverTx,
i int,
tx sdk.Tx,
block *tmtypes.Block,
) (*evmtypes.MsgEthereumTx, *rpctypes.TxResultAdditionalFields) {
res, additional, err := rpctypes.ParseTxBlockResult(txResults[i], tx, i, block.Height)
if err != nil || additional == nil || res == nil {
return nil, nil
}
return b.parseSyntethicTxFromAdditionalFields(additional), additional
}

func (b *Backend) parseSyntethicTxFromAdditionalFields(additional *rpctypes.TxResultAdditionalFields) *evmtypes.MsgEthereumTx {
func (b *Backend) parseSyntethicTxFromAdditionalFields(
additional *rpctypes.TxResultAdditionalFields,
) *evmtypes.MsgEthereumTx {
recipient := additional.Recipient
t := ethtypes.NewTx(&ethtypes.LegacyTx{
Nonce: additional.Nonce,
Expand Down

0 comments on commit 85f8bf8

Please sign in to comment.