Refactor & cleanup

This commit is contained in:
Taylor Gerring committed 2015-03-05 21:37:45 -06:00
1 parent 9f5e9eb38d
commit ef9d825cfa
5 files changed
+553 -667

No files matched your search

+1 -1
View File
@@ -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})
}