Skip to content

Commit

Permalink
deploy: c566da8
Browse files Browse the repository at this point in the history
  • Loading branch information
Br1ght0ne committed Oct 24, 2024
1 parent a6ffafa commit d3b7b7a
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 12 deletions.
2 changes: 1 addition & 1 deletion master/deploying/configurable-constants.html
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ <h1 id="configurable-constants"><a class="header" href="#configurable-constants"
&quot;sway/contracts/configurables/out/release/configurables.bin&quot;,
LoadConfiguration::default().with_configurables(configurables),
)?
.deploy(&amp;wallet, TxPolicies::default())
.deploy_if_not_exists(&amp;wallet, TxPolicies::default())
.await?;

let contract_instance = MyContract::new(contract_id, wallet.clone());
Expand Down
12 changes: 7 additions & 5 deletions master/print.html
Original file line number Diff line number Diff line change
Expand Up @@ -1525,7 +1525,7 @@ <h2 id="deploying-a-contract-binary"><a class="header" href="#deploying-a-contra
&quot;sway/contracts/configurables/out/release/configurables.bin&quot;,
LoadConfiguration::default().with_configurables(configurables),
)?
.deploy(&amp;wallet, TxPolicies::default())
.deploy_if_not_exists(&amp;wallet, TxPolicies::default())
.await?;

let contract_instance = MyContract::new(contract_id, wallet.clone());
Expand Down Expand Up @@ -3783,17 +3783,18 @@ <h2 id="loadscript"><a class="header" href="#loadscript"><code>LoadScript</code>
Deploy(
name = &quot;lib_contract_instance&quot;,
contract = &quot;LibContract&quot;,
wallet = &quot;wallet&quot;
wallet = &quot;wallet&quot;,
random_salt = false,
),
Deploy(
name = &quot;contract_caller_instance&quot;,
contract = &quot;LibContractCaller&quot;,
wallet = &quot;wallet&quot;
wallet = &quot;wallet&quot;,
),
Deploy(
name = &quot;contract_caller_instance2&quot;,
contract = &quot;LibContractCaller&quot;,
wallet = &quot;wallet&quot;
wallet = &quot;wallet&quot;,
),
);
let lib_contract_id = lib_contract_instance.contract_id();
Expand Down Expand Up @@ -3840,7 +3841,8 @@ <h2 id="loadscript"><a class="header" href="#loadscript"><code>LoadScript</code>
Deploy(
name = &quot;contract_instance&quot;,
contract = &quot;TestContract&quot;,
wallet = &quot;wallet&quot;
wallet = &quot;wallet&quot;,
random_salt = false,
),
);
</code></pre>
Expand Down
2 changes: 1 addition & 1 deletion master/searchindex.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion master/searchindex.json

Large diffs are not rendered by default.

10 changes: 6 additions & 4 deletions master/testing/the-setup-program-test-macro.html
Original file line number Diff line number Diff line change
Expand Up @@ -237,17 +237,18 @@ <h2 id="loadscript"><a class="header" href="#loadscript"><code>LoadScript</code>
Deploy(
name = &quot;lib_contract_instance&quot;,
contract = &quot;LibContract&quot;,
wallet = &quot;wallet&quot;
wallet = &quot;wallet&quot;,
random_salt = false,
),
Deploy(
name = &quot;contract_caller_instance&quot;,
contract = &quot;LibContractCaller&quot;,
wallet = &quot;wallet&quot;
wallet = &quot;wallet&quot;,
),
Deploy(
name = &quot;contract_caller_instance2&quot;,
contract = &quot;LibContractCaller&quot;,
wallet = &quot;wallet&quot;
wallet = &quot;wallet&quot;,
),
);
let lib_contract_id = lib_contract_instance.contract_id();
Expand Down Expand Up @@ -294,7 +295,8 @@ <h2 id="loadscript"><a class="header" href="#loadscript"><code>LoadScript</code>
Deploy(
name = &quot;contract_instance&quot;,
contract = &quot;TestContract&quot;,
wallet = &quot;wallet&quot;
wallet = &quot;wallet&quot;,
random_salt = false,
),
);
</code></pre>
Expand Down

0 comments on commit d3b7b7a

Please sign in to comment.