Minor tweaks for poc7

This commit is contained in:
obscuren
2014-10-08 11:59:44 +02:00
parent 0015ce1e35
commit b417766b36
7 changed files with 43 additions and 40 deletions

View File

@@ -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())