From a456289a5a91510157c3a9d526f5956f66ba5574 Mon Sep 17 00:00:00 2001 From: HuangYi Date: Fri, 14 Jan 2022 17:17:03 +0800 Subject: [PATCH] fix lint --- rpc/ethereum/backend/backend.go | 2 +- rpc/ethereum/namespaces/eth/api.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 {