Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
skosito committed May 23, 2024
1 parent 2e275f8 commit f6cb6eb
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions x/fungible/keeper/evm.go
Original file line number Diff line number Diff line change
Expand Up @@ -755,14 +755,11 @@ func (k Keeper) CallEVMWithData(
}

if !noEthereumTxEvent {
fmt.Println("88 tx", ethTxHash.Hex())
if err != nil {
return nil, fmt.Errorf("failed to convert tx msg, err=%w", err)
}
attrs = append(attrs, sdk.NewAttribute("TxData", hexutil.Encode(msg.Data())))
attrs = append(attrs, sdk.NewAttribute("TxNonce", fmt.Sprint(nonce)))

attrs = append(attrs, sdk.NewAttribute("TxHash", ethTxHash.Hex()))
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
ctx.EventManager().EmitEvents(sdk.Events{
sdk.NewEvent(
evmtypes.EventTypeEthereumTx,
Expand Down

0 comments on commit f6cb6eb

Please sign in to comment.