diff --git a/ethers/provider.nim b/ethers/provider.nim index 0e07da6..a516fa3 100644 --- a/ethers/provider.nim +++ b/ethers/provider.nim @@ -200,16 +200,6 @@ method getRevertReason*( return none string return await provider.getRevertReason(receipt.transactionHash, blockNumber) - # without blockNumber =? receipt.blockNumber or - # transaction =? await provider.getTransaction(receipt.transactionHash): - # return none string - - # try: - # await provider.replay(transaction, blockNumber) - # return none string - # except ProviderError as e: - # # should contain the revert reason - # return some e.msg proc confirm*(tx: TransactionResponse, confirmations = EthersDefaultConfirmations, diff --git a/ethers/providers/jsonrpc/conversions.nim b/ethers/providers/jsonrpc/conversions.nim index 884889e..d4f6c98 100644 --- a/ethers/providers/jsonrpc/conversions.nim +++ b/ethers/providers/jsonrpc/conversions.nim @@ -66,7 +66,6 @@ func fromJson*(json: JsonNode, name: string, result: var TransactionType) = result = TransactionType(val) func `%`*(txType: TransactionType): JsonNode = - debugEcho "serializing tx type: ", txType, " to: 0x", txType.int.toHex(1) %("0x" & txType.int.toHex(1)) # Transaction @@ -83,8 +82,6 @@ func `%`*(transaction: Transaction): JsonNode = result["gasPrice"] = %gasPrice if gasLimit =? transaction.gasLimit: result["gas"] = %gasLimit - if txType =? transaction.transactionType: - result["type"] = %txType # BlockTag