diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2015-03-06 11:37:45 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2015-03-06 11:37:45 +0800 |
commit | ef9d825cfaa274a4063bf7dcbf19c033e29b90aa (patch) | |
tree | f7bf3e516ed238b5f70fafc07a77eb21ea616f60 /javascript | |
parent | 9f5e9eb38d7bf00ec24ce4ae09f910236f776641 (diff) | |
download | go-tangerine-ef9d825cfaa274a4063bf7dcbf19c033e29b90aa.tar go-tangerine-ef9d825cfaa274a4063bf7dcbf19c033e29b90aa.tar.gz go-tangerine-ef9d825cfaa274a4063bf7dcbf19c033e29b90aa.tar.bz2 go-tangerine-ef9d825cfaa274a4063bf7dcbf19c033e29b90aa.tar.lz go-tangerine-ef9d825cfaa274a4063bf7dcbf19c033e29b90aa.tar.xz go-tangerine-ef9d825cfaa274a4063bf7dcbf19c033e29b90aa.tar.zst go-tangerine-ef9d825cfaa274a4063bf7dcbf19c033e29b90aa.zip |
Refactor & cleanup
Diffstat (limited to 'javascript')
-rw-r--r-- | javascript/types.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/javascript/types.go b/javascript/types.go index 17f1b739e..d580d14f5 100644 --- a/javascript/types.go +++ b/javascript/types.go @@ -62,7 +62,7 @@ type JSEthereum struct { func (self *JSEthereum) Block(v interface{}) otto.Value { if number, ok := v.(int64); ok { - return self.toVal(&JSBlock{self.XEth.BlockByNumber(int32(number)), self}) + return self.toVal(&JSBlock{self.XEth.BlockByNumber(uint64(number)), self}) } else if hash, ok := v.(string); ok { return self.toVal(&JSBlock{self.XEth.BlockByHash(hash), self}) } |