From 4bda43521b70b0c7d3a91552e80dc72b1a0712f9 Mon Sep 17 00:00:00 2001 From: Eric <5089238+emizzle@users.noreply.github.com> Date: Wed, 20 Sep 2023 11:05:22 +1000 Subject: [PATCH] moar debugging --- codex/market.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/codex/market.nim b/codex/market.nim index 9e04df0e4..be10a1181 100644 --- a/codex/market.nim +++ b/codex/market.nim @@ -5,6 +5,7 @@ import pkg/ethers/erc20 import ./contracts/requests import ./clock import ./periods +import ./utils/exceptions export chronos export questionable @@ -83,7 +84,7 @@ template cancelOnError*(market: Market, body) = try: body except JsonRpcProviderError as e: - trace "error encountered, cancelling tx if there's a nonce present", nonce = e.nonce, error = e.msg + trace "error encountered, cancelling tx if there's a nonce present", nonce = e.nonce, error = e.msgDetail writeStackTrace() if e.nonce.isSome: # send a 0-valued transaction with the errored nonce to prevent stuck txs