diff --git a/rpc/ethereum/backend/backend.go b/rpc/ethereum/backend/backend.go index 1aefd4a3bd..0cb68c0560 100644 --- a/rpc/ethereum/backend/backend.go +++ b/rpc/ethereum/backend/backend.go @@ -693,7 +693,7 @@ func (e *EVMBackend) GetTransactionByHash(txHash common.Hash) (*types.RPCTransac return nil, err } - // the `msgIndex` is infered from tx events, should be within the bound. + // the `msgIndex` is inferred from tx events, should be within the bound. msg, ok := tx.GetMsgs()[msgIndex].(*evmtypes.MsgEthereumTx) if !ok { return nil, errors.New("invalid ethereum tx") diff --git a/rpc/ethereum/namespaces/eth/api.go b/rpc/ethereum/namespaces/eth/api.go index ae375d5fb6..084929f6fd 100644 --- a/rpc/ethereum/namespaces/eth/api.go +++ b/rpc/ethereum/namespaces/eth/api.go @@ -798,7 +798,7 @@ func (e *PublicAPI) GetTransactionReceipt(hash common.Hash) (map[string]interfac return nil, fmt.Errorf("failed to decode tx: %w", err) } - // the `msgIndex` is infered from tx events, should be within the bound. + // the `msgIndex` is inferred from tx events, should be within the bound. msg := tx.GetMsgs()[msgIndex] ethMsg, ok := msg.(*evmtypes.MsgEthereumTx) if !ok {