aboutsummaryrefslogtreecommitdiffstats
path: root/xeth/xeth.go
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-04-02 19:38:12 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-04-02 19:38:12 +0800
commit81de8ed0912f767b2e3104aaad5c7f31920aaf2a (patch)
tree9da458d4863a70cdc9d66f17990bb625f99da427 /xeth/xeth.go
parentb86450aaae361ef183928b2de53e3724d3e174a8 (diff)
downloaddexon-81de8ed0912f767b2e3104aaad5c7f31920aaf2a.tar.gz
dexon-81de8ed0912f767b2e3104aaad5c7f31920aaf2a.tar.zst
dexon-81de8ed0912f767b2e3104aaad5c7f31920aaf2a.zip
Format code as hexdata
Diffstat (limited to 'xeth/xeth.go')
-rw-r--r--xeth/xeth.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/xeth/xeth.go b/xeth/xeth.go
index 5936c0fb2..1b6b1ccd0 100644
--- a/xeth/xeth.go
+++ b/xeth/xeth.go
@@ -325,6 +325,10 @@ func (self *XEth) CodeAt(address string) string {
return common.ToHex(self.State().SafeGet(address).Code())
}
+func (self *XEth) CodeAtBytes(address string) []byte {
+ return self.State().SafeGet(address).Code()
+}
+
func (self *XEth) IsContract(address string) bool {
return len(self.State().SafeGet(address).Code()) > 0
}