Fix bug in wallet

This commit is contained in:
Jackie 2022-07-12 21:13:48 +02:00 committed by markspanbroek
parent ac7785dd04
commit 456d454f2f
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ proc signTransaction(tr: var SignableTransaction, pk: PrivateKey) =
else:
raise newException(WalletError, "Transaction type not supported")
proc sendTransaction*(wallet: Wallet, tx: transaction.Transaction): Future[TransactionResponse] {.async.} =
method sendTransaction*(wallet: Wallet, tx: transaction.Transaction): Future[TransactionResponse] {.async.} =
if tx.sender.isSome:
doAssert tx.sender.get == wallet.address, "from Address mismatch"
isPopulated(tx)