This commit is contained in:
Eric 2023-10-25 10:58:29 +11:00
parent 8c363f287d
commit 9b30c84d41
No known key found for this signature in database
3 changed files with 2 additions and 4 deletions

View File

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

View File

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

View File

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