mirror of
https://github.com/logos-storage/nim-ethers.git
synced 2026-01-09 09:03:08 +00:00
clean up
This commit is contained in:
parent
0d0a872ca0
commit
a070b0a8e6
@ -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,
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user