mirror of
https://github.com/logos-storage/nim-ethers.git
synced 2026-01-04 06:33:07 +00:00
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 populated = await signer.populateTransaction(transaction)
|
||||||
|
|
||||||
let txResp = await signer.sendTransaction(populated)
|
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":
|
test "can wait for a transaction to be confirmed":
|
||||||
let signer = provider.getSigner()
|
let signer = provider.getSigner()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user