moar debugging

This commit is contained in:
Eric 2023-09-19 21:39:22 +10:00
parent 9fe0f2ae81
commit 2ab9034c12
No known key found for this signature in database
2 changed files with 2 additions and 1 deletions

View File

@ -84,6 +84,7 @@ template cancelOnError*(market: Market, body) =
body
except JsonRpcProviderError as e:
trace "error encountered, cancelling tx if there's a nonce present", nonce = e.nonce, error = e.msg
writeStackTrace()
if e.nonce.isSome:
# send a 0-valued transaction with the errored nonce to prevent stuck txs
await market.cancelTransaction(!e.nonce)

2
vendor/nim-ethers vendored

@ -1 +1 @@
Subproject commit 0897a6c3383cf4b6fcd3e7562c5ca15a02a21b22
Subproject commit 91eabaa67ad4d121fa37036143ba04feb1d2c21a