diff options
author | zelig <viktor.tron@gmail.com> | 2015-03-16 23:46:29 +0800 |
---|---|---|
committer | zelig <viktor.tron@gmail.com> | 2015-03-16 23:46:29 +0800 |
commit | 5e7702fd050ed5520a03cc2cfc8b1f45a70f35fb (patch) | |
tree | d5ba6197a8c0c8e36bb92ee9fc8aad717cb2d178 /vm/common.go | |
parent | 8393dab470c40678caf36ada82e312d29c4cf5c4 (diff) | |
parent | 22893b7ac925c49168c119f293ea8befc3aff5cc (diff) | |
download | go-tangerine-5e7702fd050ed5520a03cc2cfc8b1f45a70f35fb.tar go-tangerine-5e7702fd050ed5520a03cc2cfc8b1f45a70f35fb.tar.gz go-tangerine-5e7702fd050ed5520a03cc2cfc8b1f45a70f35fb.tar.bz2 go-tangerine-5e7702fd050ed5520a03cc2cfc8b1f45a70f35fb.tar.lz go-tangerine-5e7702fd050ed5520a03cc2cfc8b1f45a70f35fb.tar.xz go-tangerine-5e7702fd050ed5520a03cc2cfc8b1f45a70f35fb.tar.zst go-tangerine-5e7702fd050ed5520a03cc2cfc8b1f45a70f35fb.zip |
Merge remote-tracking branch 'upstream/develop' into frontier/js
Conflicts:
cmd/ethereum/js.go
javascript/types.go
Diffstat (limited to 'vm/common.go')
-rw-r--r-- | vm/common.go | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/vm/common.go b/vm/common.go index 1cb549228..1f07ec8a2 100644 --- a/vm/common.go +++ b/vm/common.go @@ -4,7 +4,7 @@ import ( "math" "math/big" - "github.com/ethereum/go-ethereum/ethutil" + "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/logger" ) @@ -82,22 +82,22 @@ var ( GasIdentityWord = big.NewInt(3) GasCopyWord = big.NewInt(3) - Pow256 = ethutil.BigPow(2, 256) + Pow256 = common.BigPow(2, 256) LogTyPretty byte = 0x1 LogTyDiff byte = 0x2 - U256 = ethutil.U256 - S256 = ethutil.S256 + U256 = common.U256 + S256 = common.S256 - Zero = ethutil.Big0 + Zero = common.Big0 ) const MaxCallDepth = 1025 func calcMemSize(off, l *big.Int) *big.Int { - if l.Cmp(ethutil.Big0) == 0 { - return ethutil.Big0 + if l.Cmp(common.Big0) == 0 { + return common.Big0 } return new(big.Int).Add(off, l) @@ -123,5 +123,5 @@ func getCode(code []byte, start, size uint64) []byte { x := uint64(math.Min(float64(start), float64(len(code)))) y := uint64(math.Min(float64(x+size), float64(len(code)))) - return ethutil.RightPadBytes(code[x:y], int(size)) + return common.RightPadBytes(code[x:y], int(size)) } |