mirror of
https://github.com/logos-storage/nim-ethers.git
synced 2026-03-23 04:43:41 +00:00
clean up
This commit is contained in:
parent
8c363f287d
commit
9b30c84d41
@ -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,
|
||||
|
||||
@ -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)
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user