Increased args test coverage

This commit is contained in:
Taylor Gerring
2015-03-06 09:54:08 -06:00
parent 5da3d911cf
commit dc7022cd61
4 changed files with 390 additions and 53 deletions

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(uint64(number)), self})
return self.toVal(&JSBlock{self.XEth.BlockByNumber(number), self})
} else if hash, ok := v.(string); ok {
return self.toVal(&JSBlock{self.XEth.BlockByHash(hash), self})
}