From 51e3c866c8b9058013ef43a993a4f657d8385d69 Mon Sep 17 00:00:00 2001 From: wit liu <765765346@qq.com> Date: Sun, 4 Jan 2026 19:51:09 +0800 Subject: [PATCH] ethapi: fix ineffassign warning (#1907) --- internal/ethapi/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/ethapi/api.go b/internal/ethapi/api.go index 49c835802f..bc3f9893c6 100644 --- a/internal/ethapi/api.go +++ b/internal/ethapi/api.go @@ -2661,7 +2661,7 @@ func (s *BlockChainAPI) GetTokenStats(ctx context.Context, epochNr rpc.EpochNumb if !ok { return nil, errors.New("undefined XDPoS consensus engine") } - statedb, header, err := s.b.StateAndHeaderByNumber(ctx, rpc.LatestBlockNumber) + statedb, header, _ := s.b.StateAndHeaderByNumber(ctx, rpc.LatestBlockNumber) nonce := statedb.GetNonce(common.MintedRecordAddressBinary) if nonce == 0 { return nil, errors.New("mintedRecordAddress is not initialized due to Reward Upgrade is not applied")