Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
allow deploy to optionally accept transaction options
Browse files Browse the repository at this point in the history
  • Loading branch information
Muhammad-Altabba committed Sep 26, 2023
1 parent af140b2 commit 4d25ae7
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/contract/lib/execute.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ const execute = {

execute
.prepareCall(constructor, constructorABI, arguments)
.then(async ({ args, params, network }) => {
.then(async ({ args, params, network, options: txOptions }) => {
const { blockLimit } = network;

utils.checkLibraries.apply(constructor);
Expand Down Expand Up @@ -300,7 +300,13 @@ const execute = {
contract: constructor
});

deferred = execute.sendTransaction(web3, params, promiEvent, context); //the crazy things we do for stacktracing...
deferred = execute.sendTransaction(
web3,
params,
promiEvent,
context,
txOptions
); //the crazy things we do for stacktracing...
try {
const receipt = await deferred;
if (receipt.status !== undefined && !receipt.status) {
Expand Down

0 comments on commit 4d25ae7

Please sign in to comment.