aboutsummaryrefslogtreecommitdiffstats
path: root/vm/environment.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-03-17 01:42:18 +0800
committerobscuren <geffobscura@gmail.com>2015-03-17 01:42:18 +0800
commit91b0b14845750c81466880f5f877fe3fcbd03b09 (patch)
treef765fe3f66891a566e836ea748747ddab31bca85 /vm/environment.go
parentbfcd2cf132c2f1e5c1afe6d71e3d9d9dcee5017b (diff)
downloaddexon-91b0b14845750c81466880f5f877fe3fcbd03b09.tar
dexon-91b0b14845750c81466880f5f877fe3fcbd03b09.tar.gz
dexon-91b0b14845750c81466880f5f877fe3fcbd03b09.tar.bz2
dexon-91b0b14845750c81466880f5f877fe3fcbd03b09.tar.lz
dexon-91b0b14845750c81466880f5f877fe3fcbd03b09.tar.xz
dexon-91b0b14845750c81466880f5f877fe3fcbd03b09.tar.zst
dexon-91b0b14845750c81466880f5f877fe3fcbd03b09.zip
converted vm
Diffstat (limited to 'vm/environment.go')
-rw-r--r--vm/environment.go12
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
}