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/environment.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/environment.go')
-rw-r--r-- | vm/environment.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/vm/environment.go b/vm/environment.go index 83faaa23e..a53411b23 100644 --- a/vm/environment.go +++ b/vm/environment.go @@ -12,7 +12,7 @@ import ( type Environment interface { State() *state.StateDB - Origin() []byte + Origin() common.Address BlockNumber() *big.Int GetHash(n uint64) []byte Coinbase() []byte @@ -27,9 +27,9 @@ type Environment interface { Depth() int SetDepth(i int) - Call(me ContextRef, addr, data []byte, gas, price, value *big.Int) ([]byte, error) - CallCode(me ContextRef, addr, data []byte, gas, price, value *big.Int) ([]byte, error) - Create(me ContextRef, addr, data []byte, gas, price, value *big.Int) ([]byte, error, ContextRef) + Call(me ContextRef, addr common.Address, data []byte, gas, price, value *big.Int) ([]byte, error) + CallCode(me ContextRef, addr common.Address, data []byte, gas, price, value *big.Int) ([]byte, error) + Create(me ContextRef, data []byte, gas, price, value *big.Int) ([]byte, error, ContextRef) } type Account interface { @@ -53,13 +53,13 @@ func Transfer(from, to Account, amount *big.Int) error { } type Log struct { - address []byte + address common.Address topics [][]byte data []byte log uint64 } -func (self *Log) Address() []byte { +func (self *Log) Address() common.Address { return self.address } |