eth_filter fix lint and tests
This commit is contained in:
@@ -413,6 +413,5 @@ class Selector {
|
|||||||
if (other !is SameNodeMatcher) return false
|
if (other !is SameNodeMatcher) return false
|
||||||
return other.upstreamHash == upstreamHash
|
return other.upstreamHash == upstreamHash
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -193,8 +193,19 @@ class EthereumCallSelectorSpec extends Specification {
|
|||||||
param | hash
|
param | hash
|
||||||
'["0xff09"]' | 9
|
'["0xff09"]' | 9
|
||||||
'["0xff"]' | 255
|
'["0xff"]' | 255
|
||||||
'[]' | 0
|
|
||||||
'[""]' | 0
|
'[""]' | 0
|
||||||
'["0x0"]' | 0
|
'["0x0"]' | 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
def "Get empty matcher for getFilterChanges method without params"() {
|
||||||
|
setup:
|
||||||
|
def callSelector = new EthereumCallSelector(Mock(Reader))
|
||||||
|
def head = Mock(Head)
|
||||||
|
|
||||||
|
when:
|
||||||
|
def act = callSelector.getMatcher("eth_getFilterChanges", "[]", head).block()
|
||||||
|
|
||||||
|
then:
|
||||||
|
act == null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user