aboutsummaryrefslogtreecommitdiffstats
path: root/javascript
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-03-16 18:27:38 +0800
committerobscuren <geffobscura@gmail.com>2015-03-16 18:27:38 +0800
commitb5234413611ce5984292f85a01de1f56c045b490 (patch)
treee6e0c6f7fe8358a2dc63cdea11ac66b4f59397f5 /javascript
parent0b8f66ed9ef177dc72442dd7ba337c6733e30344 (diff)
downloadgo-tangerine-b5234413611ce5984292f85a01de1f56c045b490.tar
go-tangerine-b5234413611ce5984292f85a01de1f56c045b490.tar.gz
go-tangerine-b5234413611ce5984292f85a01de1f56c045b490.tar.bz2
go-tangerine-b5234413611ce5984292f85a01de1f56c045b490.tar.lz
go-tangerine-b5234413611ce5984292f85a01de1f56c045b490.tar.xz
go-tangerine-b5234413611ce5984292f85a01de1f56c045b490.tar.zst
go-tangerine-b5234413611ce5984292f85a01de1f56c045b490.zip
Moved ethutil => common
Diffstat (limited to 'javascript')
-rw-r--r--javascript/types.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/javascript/types.go b/javascript/types.go
index 5f47c1735..a6a0bc8e2 100644
--- a/javascript/types.go
+++ b/javascript/types.go
@@ -2,7 +2,7 @@ package javascript
import (
"fmt"
- "github.com/ethereum/go-ethereum/ethutil"
+ "github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/state"
"github.com/ethereum/go-ethereum/xeth"
"github.com/obscuren/otto"
@@ -18,7 +18,7 @@ func (self *JSStateObject) EachStorage(call otto.FunctionCall) otto.Value {
it := self.Object.Trie().Iterator()
for it.Next() {
- cb.Call(self.eth.toVal(self), self.eth.toVal(ethutil.Bytes2Hex(it.Key)), self.eth.toVal(ethutil.Bytes2Hex(it.Value)))
+ cb.Call(self.eth.toVal(self), self.eth.toVal(common.Bytes2Hex(it.Key)), self.eth.toVal(common.Bytes2Hex(it.Value)))
}
return otto.UndefinedValue()
@@ -44,10 +44,10 @@ type JSLog struct {
func NewJSLog(log state.Log) JSLog {
return JSLog{
- Address: ethutil.Bytes2Hex(log.Address()),
- Topics: nil, //ethutil.Bytes2Hex(log.Address()),
+ Address: common.Bytes2Hex(log.Address()),
+ Topics: nil, //common.Bytes2Hex(log.Address()),
Number: 0,
- Data: ethutil.Bytes2Hex(log.Data()),
+ Data: common.Bytes2Hex(log.Data()),
}
}