Increased args test coverage
This commit is contained in:
1 parent
5da3d911cf
commit
dc7022cd61
4 files changed
+390
-53
No files matched your search
+1
-1
@@ -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})
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user