-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix gas meter and setNetwork #18
Conversation
function ternaryU128(bool condition, uint128 a, uint128 b) internal pure returns (uint128 r) { | ||
assembly { | ||
r := xor(b, mul(xor(a, b), condition)) | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah.. even so solidity supports method overloading, it doesn't work with types of the same family, only between different types like bytes*
, address
, uint*
, but fails if you attempt to overload uint256
and uint128
.
// GAP necessary for migration purposes | ||
mapping(GmpSender => mapping(uint16 => uint256)) private _deprecated_Deposits; | ||
mapping(uint16 => bytes32) private _deprecated_Networks; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Upgrade was failling because I had to add it back.
No description provided.