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