mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-07 16:33:08 +00:00
added message to failed assert (#2805)
This commit is contained in:
parent
641aa48696
commit
767e89d5f1
@ -6,7 +6,7 @@ else:
|
|||||||
{.push raises: [].}
|
{.push raises: [].}
|
||||||
|
|
||||||
import
|
import
|
||||||
std/[options, os, osproc, sequtils, deques, streams, strutils, tempfiles],
|
std/[options, os, osproc, sequtils, deques, streams, strutils, tempfiles, strformat],
|
||||||
stew/[results, byteutils],
|
stew/[results, byteutils],
|
||||||
testutils/unittests,
|
testutils/unittests,
|
||||||
chronos,
|
chronos,
|
||||||
@ -119,10 +119,11 @@ proc createEthAccount(): Future[(keys.PrivateKey, Address)] {.async.} =
|
|||||||
tx.to = some(acc)
|
tx.to = some(acc)
|
||||||
tx.gasPrice = some(gasPrice)
|
tx.gasPrice = some(gasPrice)
|
||||||
|
|
||||||
# Send 10 eth to acc
|
# Send 1000 eth to acc
|
||||||
discard await web3.send(tx)
|
discard await web3.send(tx)
|
||||||
let balance = await web3.provider.eth_getBalance(acc, "latest")
|
let balance = await web3.provider.eth_getBalance(acc, "latest")
|
||||||
assert(balance == ethToWei(1000.u256))
|
assert balance == ethToWei(1000.u256),
|
||||||
|
fmt"Balance is {balance} but expected {ethToWei(1000.u256)}"
|
||||||
|
|
||||||
return (pk, acc)
|
return (pk, acc)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user