Pārlūkot izejas kodu

every call println

skyfffire 2 gadi atpakaļ
vecāks
revīzija
e3c6fe0654
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      internal/ethapi/api.go

+ 2 - 2
internal/ethapi/api.go

@@ -1028,9 +1028,9 @@ func (s *PublicBlockChainAPI) BatchCall(ctx context.Context, config BatchCallCon
 			call.BlockOverrides.Apply(&blockContext)
 		}
 		result, err := doCall(ctx, s.b, call.CallArgs, state, header, timeout, gp, &blockContext)
-		if err != nil {
-			fmt.Sprintf("410 execution reverted: %v", err.Error())
+		fmt.Sprintf("------call execution reverted: %v", err)
 
+		if err != nil {
 			results = append(results, CallResult{Return: nil, Error: err})
 		} else {
 			// If the result contains a revert reason, try to unpack it.