diff options
Diffstat (limited to 'ethpipe')
-rw-r--r-- | ethpipe/js_pipe.go | 2 | ||||
-rw-r--r-- | ethpipe/pipe.go | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/ethpipe/js_pipe.go b/ethpipe/js_pipe.go index 24a553dad..17c2261c7 100644 --- a/ethpipe/js_pipe.go +++ b/ethpipe/js_pipe.go @@ -3,6 +3,7 @@ package ethpipe import ( "bytes" "encoding/json" + "fmt" "sync/atomic" "github.com/ethereum/eth-go/ethchain" @@ -92,6 +93,7 @@ func (self *JSPipe) NumberToHuman(balance string) string { } func (self *JSPipe) StorageAt(addr, storageAddr string) string { + fmt.Println("get", addr, storageAddr) storage := self.World().SafeGet(ethutil.Hex2Bytes(addr)).Storage(ethutil.Hex2Bytes(storageAddr)) return ethutil.Bytes2Hex(storage.Bytes()) diff --git a/ethpipe/pipe.go b/ethpipe/pipe.go index f57b56ea0..1e1a2b835 100644 --- a/ethpipe/pipe.go +++ b/ethpipe/pipe.go @@ -61,7 +61,7 @@ func (self *Pipe) ExecuteObject(object *Object, data []byte, value, gas, price * vm := ethvm.New(NewEnv(self.Vm.State, block, value.BigInt(), initiator.Address())) vm.Verbose = true - msg := ethvm.NewMessage(vm, object.Address(), data, gas.BigInt(), price.BigInt(), value.BigInt()) + msg := ethvm.NewExecution(vm, object.Address(), data, gas.BigInt(), price.BigInt(), value.BigInt()) ret, err := msg.Exec(object.Address(), initiator) fmt.Println("returned from call", ret, err) |