aboutsummaryrefslogtreecommitdiffstats
path: root/xeth
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2015-04-02 21:13:30 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2015-04-02 21:13:30 +0800
commit607fc788e378c62ceea72dbc536da0b484323a44 (patch)
tree7960e9677c2d27e481d5eadece80769c9a80bfbd /xeth
parent1e28b424e7f0f0d16f467ac7bac08b9dc0384106 (diff)
parentb4eef59b6f9631d22fdf62a2b1a40fe05209fccd (diff)
downloadgo-tangerine-607fc788e378c62ceea72dbc536da0b484323a44.tar.gz
go-tangerine-607fc788e378c62ceea72dbc536da0b484323a44.tar.zst
go-tangerine-607fc788e378c62ceea72dbc536da0b484323a44.zip
Merge pull request #619 from tgerring/rpcfabian
RPC Fabian fixes
Diffstat (limited to 'xeth')
-rw-r--r--xeth/xeth.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/xeth/xeth.go b/xeth/xeth.go
index 13a183832..b203e45de 100644
--- a/xeth/xeth.go
+++ b/xeth/xeth.go
@@ -323,6 +323,10 @@ func (self *XEth) CodeAt(address string) string {
return common.ToHex(self.State().state.GetCode(common.HexToAddress(address)))
}
+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
}