From a0765a8bc4df72931edbeda92a89ee01f4900005 Mon Sep 17 00:00:00 2001 From: mars Date: Tue, 15 Mar 2022 15:47:23 +0800 Subject: [PATCH] No need to panic (#3694) --- cmd/rpcdaemon/commands/trace_adhoc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/rpcdaemon/commands/trace_adhoc.go b/cmd/rpcdaemon/commands/trace_adhoc.go index 248216dae..2ee9b0c56 100644 --- a/cmd/rpcdaemon/commands/trace_adhoc.go +++ b/cmd/rpcdaemon/commands/trace_adhoc.go @@ -206,7 +206,7 @@ func (args *TraceCallParam) ToMessage(globalGasCap uint64, baseFee *uint256.Int) if args.Value != nil { overflow := value.SetFromBig(args.Value.ToInt()) if overflow { - panic(fmt.Errorf("args.Value higher than 2^256-1")) + return types.Message{}, fmt.Errorf("args.Value higher than 2^256-1") } } var data []byte