diff --git a/codex/market.nim b/codex/market.nim index 7a491588..1728a09c 100644 --- a/codex/market.nim +++ b/codex/market.nim @@ -83,8 +83,7 @@ template cancelOnError*(market: Market, body) = try: body except JsonRpcProviderError as e: - writeStackTrace() - echo "[market.cancelOnError] error encountered -- nonce: ", e.nonce, ", error: ", e.msg + trace "error encountered, cancelling tx if there's a nonce present", nonce = e.nonce, error = e.msg if e.nonce.isSome: # send a 0-valued transaction with the errored nonce to prevent stuck txs await market.cancelTransaction(!e.nonce) diff --git a/vendor/nim-ethers b/vendor/nim-ethers index 8fff6310..5d70c83b 160000 --- a/vendor/nim-ethers +++ b/vendor/nim-ethers @@ -1 +1 @@ -Subproject commit 8fff63102a3461ddec61714df80840740eaade1f +Subproject commit 5d70c83be109abb4ef05596424e7860c55967ee5