problem: doesn't parse block selector specified as object EIP-1898

rel: #81
This commit is contained in:
Igor Artamonov
2021-03-19 22:04:03 -04:00
parent c3f0f1f589
commit c3c1a51a52
2 changed files with 30 additions and 9 deletions

View File

@@ -78,4 +78,12 @@ class EthereumCallSelectorSpec extends Specification {
act == null
}
def "Get height matcher with EIP-1898"() {
setup:
def head = Stub(Head)
when:
def act = callSelector.getMatcher("eth_call", '["0x0000", {"blockNumber": "0x100"}]', head)
then:
act == new Selector.HeightMatcher(0x100)
}
}