Skip to content

Commit

Permalink
fix IndexDefect compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
emizzle committed Oct 23, 2024
1 parent c0b17a6 commit ee1c0f1
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions ethers/contract.nim
Original file line number Diff line number Diff line change
Expand Up @@ -129,14 +129,10 @@ proc send(
): Future[?TransactionResponse] {.async: (raises: [AsyncLockError, CancelledError, CatchableError]).} =

if signer =? contract.signer:
var params: seq[string] = @[]
for param in parameters.fields:
params.add $param

withLock(signer):
let transaction = createTransaction(contract, function, parameters, overrides)
let populated = await signer.populateTransaction(transaction)
trace "sending contract transaction", function, params
trace "sending contract transaction", function, params = $parameters
let txResp = await signer.sendTransaction(populated)
return txResp.some
else:
Expand Down

0 comments on commit ee1c0f1

Please sign in to comment.