Simple Summary
When specifying gas and value in an external function call, it should not be possible to use a variable of type int128.
Motivation
msg.value and msg.gas are of both of type uint256.
- It is not possible to use negative gas or transfer negative wei, so under the hood we are silently bounds-checking
int128 values and converting to uint256.
Specification
Raise an InvalidType error if gas or value are given as an int128 variable.
Backwards Compatibility
This is a breaking change.
Copyright
Copyright and related rights waived via CC0
Simple Summary
When specifying
gasandvaluein an external function call, it should not be possible to use a variable of typeint128.Motivation
msg.valueandmsg.gasare of both of typeuint256.int128values and converting touint256.Specification
Raise an
InvalidTypeerror ifgasorvalueare given as anint128variable.Backwards Compatibility
This is a breaking change.
Copyright
Copyright and related rights waived via CC0