From 052ade3c8d5fc17391330f1dc3532c779c72c577 Mon Sep 17 00:00:00 2001 From: brion Date: Tue, 20 Dec 2022 00:40:27 +0800 Subject: [PATCH] update --- internal/ethapi/api_multicall.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/internal/ethapi/api_multicall.go b/internal/ethapi/api_multicall.go index 389e206079..97971f58bb 100644 --- a/internal/ethapi/api_multicall.go +++ b/internal/ethapi/api_multicall.go @@ -208,8 +208,10 @@ func doOneCall(ctx context.Context, b Backend, state *state.StateDB, header *typ // skip EVM if requests for native token if strings.ToLower(msg.To().Hex()) == nativeAddr { result.Result, err = handleNative(ctx, state, msg) - result.Code = errLogic - result.Err = err.Error() + if err != nil { + result.Code = errLogic + result.Err = err.Error() + } return result, err }