[wallet] Avoid Option.get() which can raise UnpackDefect
This commit is contained in:
parent
1a8ca0bcad
commit
a2d688e34e
|
@ -107,7 +107,7 @@ proc signTransaction*(wallet: Wallet, tx: transaction.Transaction): Future[seq[b
|
||||||
|
|
||||||
method sendTransaction*(wallet: Wallet, tx: transaction.Transaction): Future[TransactionResponse] {.async.} =
|
method sendTransaction*(wallet: Wallet, tx: transaction.Transaction): Future[TransactionResponse] {.async.} =
|
||||||
let rawTX = await signTransaction(wallet, tx)
|
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
|
#TODO add functionality to sign messages
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue