diff --git a/ethers/contract.nim b/ethers/contract.nim index 4c047f6..1bef12d 100644 --- a/ethers/contract.nim +++ b/ethers/contract.nim @@ -58,8 +58,8 @@ func signer*(contract: Contract): ?Signer = func address*(contract: Contract): Address = contract.address -template raiseContractError(message: string, parent: ref Exception = nil) = - raise newException(ContractError, message, parent) +template raiseContractError(message: string) = + raise newException(ContractError, message) proc createTransaction(contract: Contract, function: string, diff --git a/ethers/providers/jsonrpc.nim b/ethers/providers/jsonrpc.nim index 37d1257..96941a8 100644 --- a/ethers/providers/jsonrpc.nim +++ b/ethers/providers/jsonrpc.nim @@ -260,5 +260,4 @@ method sendTransaction*(signer: JsonRpcSigner, client = await signer.provider.client hash = await client.eth_sendTransaction(transaction) - trace "jsonrpc sendTransaction RESPONSE", nonce = transaction.nonce, hash = hash.to0xHex return TransactionResponse(hash: hash, provider: signer.provider) diff --git a/ethers/providers/jsonrpc/conversions.nim b/ethers/providers/jsonrpc/conversions.nim index d4f6c98..6f89542 100644 --- a/ethers/providers/jsonrpc/conversions.nim +++ b/ethers/providers/jsonrpc/conversions.nim @@ -1,7 +1,6 @@ import std/json import std/strformat import std/strutils -import std/typetraits import pkg/json_rpc/jsonmarshal import pkg/stew/byteutils import ../../basics