mirror of
https://github.com/arnaucube/go-ethereum.git
synced 2026-02-28 14:06:45 +01:00
Increased args test coverage
This commit is contained in:
@@ -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