Skip to content

Commit

Permalink
clean up txOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
ltfschoen committed Nov 3, 2024
1 parent 3ec3302 commit 6d8999e
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions packages/secret-contracts-scripts/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,14 @@ async function main () {
};
// ../../packages/secret-contracts-scripts/node_modules/secretjs/src/secret_network_client.ts
let txOptions = {
broadcastCheckIntervalMs: 24_000, // 6 second block
broadcastTimeoutMs: 240_000,
broadcastMode: BroadcastMode.Async,
gasLimit: 5_000_000,
gasLimit: 5_000_000, // default 25_000
gasPriceInFeeDenom: 1, // default 0.1
feeDenom: "uscrt",
feeGranter: wallet.address,
waitForCommit: true,
waitForCommit: true, // default true
broadcastTimeoutMs: 240_000, // default 60_000
broadcastCheckIntervalMs: 24_000, // default 6_000 for 6 second block
broadcastMode: BroadcastMode.Async,
};
try {
tx = await secretjs.tx.compute.storeCode(txParams, txOptions);
Expand Down Expand Up @@ -171,14 +171,14 @@ async function main () {
};

let txOptions = {
broadcastCheckIntervalMs: 24_000, // 6 second block
broadcastTimeoutMs: 240_000,
broadcastMode: BroadcastMode.Async,
gasLimit: 5_000_000,
gasLimit: 5_000_000, // default 25_000
gasPriceInFeeDenom: 1, // default 0.1
feeDenom: "uscrt",
feeGranter: wallet.address,
waitForCommit: true,
waitForCommit: true, // default true
broadcastTimeoutMs: 240_000, // default 60_000
broadcastCheckIntervalMs: 24_000, // default 6_000 for 6 second block
broadcastMode: BroadcastMode.Async,
};

let tx = await secretjs.tx.compute.instantiateContract(txParams, txOptions);
Expand Down

0 comments on commit 6d8999e

Please sign in to comment.