From 9f8a0b597e537d4164d61e0d7cef33d6cfc84122 Mon Sep 17 00:00:00 2001 From: Marius van der Wijden Date: Thu, 21 May 2020 15:45:50 +0200 Subject: [PATCH] internal/ethapi: return vmError() --- 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 6611da650c..d6c0fa4c50 100644 --- a/internal/ethapi/api.go +++ b/internal/ethapi/api.go @@ -868,7 +868,7 @@ func DoCall(ctx context.Context, b Backend, args CallArgs, blockNrOrHash rpc.Blo return nil, fmt.Errorf("execution reverted: %v", reason) } } - return result, result.Err + return result, err } // Call executes the given transaction on the state for the given block number.