[wallet] Avoid Option.get() which can raise UnpackDefect

This commit is contained in:
Mark Spanbroek 2022-07-14 11:51:24 +02:00 committed by markspanbroek
parent 1a8ca0bcad
commit a2d688e34e
1 changed files with 1 additions and 1 deletions

View File

@ -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