You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Simple Summary
When specifying
gas
andvalue
in an external function call, it should not be possible to use a variable of typeint128
.Motivation
msg.value
andmsg.gas
are of both of typeuint256
.int128
values and converting touint256
.Specification
Raise an
InvalidType
error ifgas
orvalue
are given as anint128
variable.Backwards Compatibility
This is a breaking change.
Copyright
Copyright and related rights waived via CC0
The text was updated successfully, but these errors were encountered: