This commit is contained in:
Eric 2023-09-26 17:36:44 +10:00
parent 0d0a872ca0
commit a070b0a8e6
No known key found for this signature in database
2 changed files with 0 additions and 13 deletions

View File

@ -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,

View File

@ -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