Skip to content

Commit 19288b3

Browse files
authored
Merge pull request #20 from SC-One/dev_patch
Message correction
2 parents eb8b471 + 94d40d0 commit 19288b3

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

docs/_app/immutable/entry/(examples)-06-contract-deploy-another-page.svelte.ad13b189.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/routes/(examples)/06-contract-deploy-another/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
return [await contract2.send(sender, { value: toNano(1) }, "identify")];
3838
},
3939
'"deploy 2nd" to 1': async () => {
40-
return [await contract.send(sender, { value: toNano(1) }, "deploy next")];
40+
return [await contract.send(sender, { value: toNano(1) }, "deploy 2nd")];
4141
},
4242
},
4343
getters: {},

src/routes/(examples)/06-contract-deploy-another/content.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ Contracts are not necessarily only deployed by users, they can also be deployed
44

55
In this example, when pressing the <span class="mdButton blue">Deploy</span> button, we only deploy one contract instance - the one with constructor argument 1.
66

7-
The second instance (with constructor argument 2) will be deployed by the first contract instance when it receives the `deploy next` message. Send this message to the first instance by pressing the <span class="mdButton grape">Send "deploy 2nd" to 1</span> button.
7+
The second instance (with constructor argument 2) will be deployed by the first contract instance when it receives the `deploy 2nd` message. Send this message to the first instance by pressing the <span class="mdButton grape">Send "deploy 2nd" to 1</span> button.
88

99
## Messages containing state init
1010

1111
The combination of the inital code and the initial data of a contract is called the *stateInit* of the contract.
1212

1313
When sending any message to a contract, we can attach its *stateInit* by specifying the `code` and `data` fields of the message. This will deploy the contract if it has not already been deployed. If the contract has already been deployed, these fields will be ignored.
1414

15-
Notice that in this example, we piggyback the deployment on the `indentify` message.
15+
Notice that in this example, we piggyback the deployment on the `indentify` message.

0 commit comments

Comments
 (0)