From 0285f81af381c4a10fb87e3980cb1a546962d015 Mon Sep 17 00:00:00 2001 From: Sina Mahmoodi Date: Tue, 6 Jun 2023 21:51:59 +0200 Subject: [PATCH] dont abort on call validation error --- internal/ethapi/api.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/ethapi/api.go b/internal/ethapi/api.go index 9a74777bad..477ba40118 100644 --- a/internal/ethapi/api.go +++ b/internal/ethapi/api.go @@ -1162,7 +1162,8 @@ func (s *BlockChainAPI) Multicall(ctx context.Context, blocks []CallBatch, block state.SetTxContext(txhash, i) result, err := doCall(ctx, s.b, call, state, header, timeout, gp, &blockContext, &vm.Config{NoBaseFee: true, DisableECRecover: true}) if err != nil { - return nil, err + results[bi][i] = callResult{Error: err.Error()} + continue } // If the result contains a revert reason, try to unpack it. if len(result.Revert()) > 0 {