aboutsummaryrefslogtreecommitdiffstats
path: root/ethutil/common.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-07-22 02:38:43 +0800
committerobscuren <geffobscura@gmail.com>2014-07-22 02:38:43 +0800
commit20ee1ae65e57ef7d60404277162c84c572c6bb10 (patch)
treedbb43cc384068a98650b035d9f8a157e9de263f9 /ethutil/common.go
parenteab0b2a90a3e33d0be4d09cbb99d193ba2219844 (diff)
downloaddexon-20ee1ae65e57ef7d60404277162c84c572c6bb10.tar.gz
dexon-20ee1ae65e57ef7d60404277162c84c572c6bb10.tar.zst
dexon-20ee1ae65e57ef7d60404277162c84c572c6bb10.zip
Refactored CALLDATALOAD to use big int
* Added BigMin
Diffstat (limited to 'ethutil/common.go')
-rw-r--r--ethutil/common.go12
1 files changed, 7 insertions, 5 deletions
diff --git a/ethutil/common.go b/ethutil/common.go
index 2fd031a20..cbd94e7ad 100644
--- a/ethutil/common.go
+++ b/ethutil/common.go
@@ -58,9 +58,11 @@ func CurrencyToString(num *big.Int) string {
// Common big integers often used
var (
- Big1 = big.NewInt(1)
- Big2 = big.NewInt(2)
- Big0 = big.NewInt(0)
- Big32 = big.NewInt(32)
- Big256 = big.NewInt(0xff)
+ Big1 = big.NewInt(1)
+ Big2 = big.NewInt(2)
+ Big0 = big.NewInt(0)
+ BigTrue = Big1
+ BigFalse = Big0
+ Big32 = big.NewInt(32)
+ Big256 = big.NewInt(0xff)
)