From e93549dbc2b4ebb9b43d0b37b72154b5ad657a03 Mon Sep 17 00:00:00 2001 From: Eric <5089238+emizzle@users.noreply.github.com> Date: Tue, 12 Sep 2023 14:39:17 +1000 Subject: [PATCH] temp debug info --- ethers/providers/jsonrpc.nim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ethers/providers/jsonrpc.nim b/ethers/providers/jsonrpc.nim index 390625d..f5200e7 100644 --- a/ethers/providers/jsonrpc.nim +++ b/ethers/providers/jsonrpc.nim @@ -43,10 +43,12 @@ template convertError(nonce = none UInt256, body) = try: body except JsonRpcError as error: + echo "[jsonrpc.convertError] error encountered (nonce: ", nonce, "): ", error.msg raiseProviderError(error.msg, nonce) # Catch all ValueErrors for now, at least until JsonRpcError is actually # raised. PR created: https://github.com/status-im/nim-json-rpc/pull/151 except ValueError as error: + echo "[jsonrpc.convertError] error encountered (nonce: ", nonce, "): ", error.msg raiseProviderError(error.msg, nonce) template convertError(body) = @@ -259,4 +261,5 @@ method sendTransaction*(signer: JsonRpcSigner, client = await signer.provider.client hash = await client.eth_sendTransaction(transaction) + echo "[jsonrpc.sendTransaction] RESPONSE send transaction -- nonce: ", transaction.nonce, ", hash: ", hash return TransactionResponse(hash: hash, provider: signer.provider)