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:
parent
083af80dcc
commit
e9aaea4a5a
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue