This commit is contained in:
Jacek Sieka 2020-06-21 22:10:26 +02:00
parent 806547ddd1
commit 73896c2226
No known key found for this signature in database
GPG Key ID: A1B09461ABB656B8
1 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ proc test() {.async.} =
web3.defaultAccount = accounts[0]
let pk = PrivateKEy.random()[]
let acc = Address(toCanonicalAddress(pk.toPublicKey()[]))
let acc = Address(toCanonicalAddress(pk.toPublicKey()))
var tx: EthSend
tx.source = accounts[0]
@ -44,7 +44,7 @@ proc test() {.async.} =
assert(balance == ethToWei(10.u256))
# Send 5 eth back
web3.privateKey = pk
web3.privateKey = some(pk)
tx.value = some(ethToWei(5.u256))
tx.to = some(accounts[0])
tx.gas = some(Quantity(3000000))