Skip to content

Commit

Permalink
moar debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
emizzle committed Sep 20, 2023
1 parent 1a97113 commit 4bda435
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion codex/market.nim
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import pkg/ethers/erc20
import ./contracts/requests
import ./clock
import ./periods
import ./utils/exceptions

export chronos
export questionable
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4bda435

Please sign in to comment.