diff options
author | obscuren <geffobscura@gmail.com> | 2015-03-17 01:42:18 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-03-17 01:42:18 +0800 |
commit | 91b0b14845750c81466880f5f877fe3fcbd03b09 (patch) | |
tree | f765fe3f66891a566e836ea748747ddab31bca85 /vm/context.go | |
parent | bfcd2cf132c2f1e5c1afe6d71e3d9d9dcee5017b (diff) | |
download | go-tangerine-91b0b14845750c81466880f5f877fe3fcbd03b09.tar go-tangerine-91b0b14845750c81466880f5f877fe3fcbd03b09.tar.gz go-tangerine-91b0b14845750c81466880f5f877fe3fcbd03b09.tar.bz2 go-tangerine-91b0b14845750c81466880f5f877fe3fcbd03b09.tar.lz go-tangerine-91b0b14845750c81466880f5f877fe3fcbd03b09.tar.xz go-tangerine-91b0b14845750c81466880f5f877fe3fcbd03b09.tar.zst go-tangerine-91b0b14845750c81466880f5f877fe3fcbd03b09.zip |
converted vm
Diffstat (limited to 'vm/context.go')
-rw-r--r-- | vm/context.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vm/context.go b/vm/context.go index 6edde0824..93a0102d4 100644 --- a/vm/context.go +++ b/vm/context.go @@ -9,7 +9,7 @@ import ( type ContextRef interface { ReturnGas(*big.Int, *big.Int) - Address() []byte + Address() common.Address SetCode([]byte) } @@ -18,7 +18,7 @@ type Context struct { self ContextRef Code []byte - CodeAddr []byte + CodeAddr common.Address value, Gas, UsedGas, Price *big.Int @@ -100,7 +100,7 @@ func (c *Context) ReturnGas(gas, price *big.Int) { /* * Set / Get */ -func (c *Context) Address() []byte { +func (c *Context) Address() common.Address { return c.self.Address() } @@ -108,7 +108,7 @@ func (self *Context) SetCode(code []byte) { self.Code = code } -func (self *Context) SetCallCode(addr, code []byte) { +func (self *Context) SetCallCode(addr common.Address, code []byte) { self.Code = code self.CodeAddr = addr } |