mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-24 20:47:16 +00:00
No need to panic (#3694)
This commit is contained in:
parent
8c8d1603e1
commit
a0765a8bc4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user