Fix intermittent test failure

Test would fail with an error when transaction hash
happens to start with 0b; it would then try to to parse
the hash as a binary number.
This commit is contained in:
Mark Spanbroek 2022-07-12 13:13:17 +02:00 committed by markspanbroek
parent 083af80dcc
commit e9aaea4a5a
1 changed files with 2 additions and 1 deletions

View File

@ -60,7 +60,8 @@ suite "JsonRpcProvider":
let populated = await signer.populateTransaction(transaction)
let txResp = await signer.sendTransaction(populated)
check txResp.hash.len == 32 and UInt256.fromHex(txResp.hash.toHex) > 0
check txResp.hash.len == 32
check UInt256.fromHex("0x" & txResp.hash.toHex) > 0
test "can wait for a transaction to be confirmed":
let signer = provider.getSigner()