mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 19:50:36 +00:00
1. not need to panic 2. fix error message (#3692)
This commit is contained in:
parent
4ee0ae1610
commit
8c8d1603e1
@ -130,7 +130,7 @@ func (args *CallArgs) ToMessage(globalGasCap uint64, baseFee *uint256.Int) (type
|
||||
if args.Value != nil {
|
||||
overflow := value.SetFromBig(args.Value.ToInt())
|
||||
if overflow {
|
||||
panic(fmt.Errorf("args.GasPrice 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