From 16ee7d07a822ac64b1eb3d695ebe6af0f2063e82 Mon Sep 17 00:00:00 2001 From: Kevin Li Date: Wed, 5 Oct 2022 12:32:08 -0400 Subject: [PATCH] fix: EthGetTransactionCount should not return error --- node/impl/full/eth.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/node/impl/full/eth.go b/node/impl/full/eth.go index f87a91dd6..b0d45b906 100644 --- a/node/impl/full/eth.go +++ b/node/impl/full/eth.go @@ -175,11 +175,11 @@ func (a *EthModule) EthGetTransactionByHash(ctx context.Context, txHash *api.Eth func (a *EthModule) EthGetTransactionCount(ctx context.Context, sender api.EthAddress, blkParam string) (api.EthUint64, error) { addr, err := sender.ToFilecoinAddress() if err != nil { - return api.EthUint64(0), err + return api.EthUint64(0), nil } nonce, err := a.Mpool.GetNonce(ctx, addr, types.EmptyTSK) if err != nil { - return api.EthUint64(0), err + return api.EthUint64(0), nil } return api.EthUint64(nonce), nil }