Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
skosito committed May 28, 2024
1 parent 7dd8aa6 commit 9a43e43
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions x/fungible/keeper/evm.go
Original file line number Diff line number Diff line change
Expand Up @@ -788,8 +788,10 @@ func (k Keeper) CallEVMWithData(
}

if !noEthereumTxEvent {
attrs = append(attrs, sdk.NewAttribute("TxData", hexutil.Encode(msg.Data()))) // adding txData for more info in rpc methods
attrs = append(attrs, sdk.NewAttribute("TxNonce", fmt.Sprint(nonce))) // adding nonce for more info in rpc methods
// adding txData for more info in rpc methods in order to parse synthetic txs
attrs = append(attrs, sdk.NewAttribute("TxData", hexutil.Encode(msg.Data())))
// adding nonce for more info in rpc methods in order to parse synthetic txs
attrs = append(attrs, sdk.NewAttribute("TxNonce", fmt.Sprint(nonce)))
ctx.EventManager().EmitEvents(sdk.Events{
sdk.NewEvent(
evmtypes.EventTypeEthereumTx,
Expand Down

0 comments on commit 9a43e43

Please sign in to comment.