From 456d454f2fbb20b7f4a54ccbf0ac7125356d7a6e Mon Sep 17 00:00:00 2001 From: Jackie Date: Tue, 12 Jul 2022 21:13:48 +0200 Subject: [PATCH] Fix bug in wallet --- ethers/wallet.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ethers/wallet.nim b/ethers/wallet.nim index f69a846..abab62b 100644 --- a/ethers/wallet.nim +++ b/ethers/wallet.nim @@ -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)