瀏覽代碼

fmt.Fprintf(os.Stderr

skyfffire 2 年之前
父節點
當前提交
682fe71427
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      internal/ethapi/api.go

+ 2 - 1
internal/ethapi/api.go

@@ -22,6 +22,7 @@ import (
 	"errors"
 	"fmt"
 	"math/big"
+	"os"
 	"strings"
 	"time"
 
@@ -1028,7 +1029,7 @@ 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)
-		fmt.Sprintf("------call execution reverted: %v", err)
+		fmt.Fprintf(os.Stderr, "------call execution reverted: %v", err)
 
 		if err != nil {
 			results = append(results, CallResult{Return: nil, Error: err})