mirror of
https://github.com/codex-storage/nim-codex.git
synced 2025-02-18 15:58:08 +00:00
fix build
This commit is contained in:
parent
a74e657515
commit
27ae16c1f8
@ -83,7 +83,7 @@ template cancelOnError*(market: Market, body) =
|
|||||||
try:
|
try:
|
||||||
body
|
body
|
||||||
except JsonRpcProviderError as e:
|
except JsonRpcProviderError as e:
|
||||||
echo "[market.cancelOnError] error encountered -- nonce: ", nonce
|
echo "[market.cancelOnError] error encountered -- nonce: ", e.nonce
|
||||||
if e.nonce.isSome:
|
if e.nonce.isSome:
|
||||||
# send a 0-valued transaction with the errored nonce to prevent stuck txs
|
# send a 0-valued transaction with the errored nonce to prevent stuck txs
|
||||||
await market.cancelTransaction(!e.nonce)
|
await market.cancelTransaction(!e.nonce)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user