FullMath works with Solidity 0.8
This commit is contained in:
10
test/TestFullMath.py
Normal file
10
test/TestFullMath.py
Normal file
@@ -0,0 +1,10 @@
|
||||
|
||||
Mask256 = 2**256-1
|
||||
MinusOne = -1
|
||||
MAXpos = Mask256 >> 1
|
||||
MAXneg = -MAXpos-1
|
||||
|
||||
print("MAXpos:", hex(MAXpos))
|
||||
print("MAXneg:", hex(MAXneg))
|
||||
|
||||
pass
|
||||
Reference in New Issue
Block a user