From a2d688e34eee05bdd9d79558fd4efdf9e9faf8e0 Mon Sep 17 00:00:00 2001 From: Mark Spanbroek Date: Thu, 14 Jul 2022 11:51:24 +0200 Subject: [PATCH] [wallet] Avoid Option.get() which can raise UnpackDefect --- ethers/wallet.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ethers/wallet.nim b/ethers/wallet.nim index 00b5ad4..b7ecbac 100644 --- a/ethers/wallet.nim +++ b/ethers/wallet.nim @@ -107,7 +107,7 @@ proc signTransaction*(wallet: Wallet, tx: transaction.Transaction): Future[seq[b method sendTransaction*(wallet: Wallet, tx: transaction.Transaction): Future[TransactionResponse] {.async.} = let rawTX = await signTransaction(wallet, tx) - return await wallet.provider.get.sendTransaction(rawTX) + return await provider(wallet).sendTransaction(rawTX) #TODO add functionality to sign messages