aboutsummaryrefslogtreecommitdiffstats
path: root/ethpipe/object.go
diff options
context:
space:
mode:
Diffstat (limited to 'ethpipe/object.go')
-rw-r--r--ethpipe/object.go26
1 files changed, 0 insertions, 26 deletions
diff --git a/ethpipe/object.go b/ethpipe/object.go
deleted file mode 100644
index 356ed788c..000000000
--- a/ethpipe/object.go
+++ /dev/null
@@ -1,26 +0,0 @@
-package ethpipe
-
-import (
- "github.com/ethereum/go-ethereum/ethstate"
- "github.com/ethereum/go-ethereum/ethutil"
-)
-
-type Object struct {
- *ethstate.StateObject
-}
-
-func (self *Object) StorageString(str string) *ethutil.Value {
- if ethutil.IsHex(str) {
- return self.Storage(ethutil.Hex2Bytes(str[2:]))
- } else {
- return self.Storage(ethutil.RightPadBytes([]byte(str), 32))
- }
-}
-
-func (self *Object) StorageValue(addr *ethutil.Value) *ethutil.Value {
- return self.Storage(addr.Bytes())
-}
-
-func (self *Object) Storage(addr []byte) *ethutil.Value {
- return self.StateObject.GetStorage(ethutil.BigD(addr))
-}