diff options
Diffstat (limited to 'xeth/xeth.go')
-rw-r--r-- | xeth/xeth.go | 4 |
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 } |