Allow Initializable versions greater than 256 (#4460)

Co-authored-by: Francisco <fg@frang.io>
This commit is contained in:
Ernesto García
2023-08-07 15:59:19 -06:00
committed by GitHub
parent 54a235f895
commit 70578bbb44
6 changed files with 76 additions and 32 deletions

View File

@ -0,0 +1,7 @@
const MAX_UINT48 = web3.utils.toBN(1).shln(48).subn(1).toString();
const MAX_UINT64 = web3.utils.toBN(1).shln(64).subn(1).toString();
module.exports = {
MAX_UINT48,
MAX_UINT64,
};