Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion content/contract-dev/techniques/contract-sharding.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ contract TodoParent with Deployable {
let init: StateInit = initOf TodoChild(self.numChildren);
send(SendParameters{
to: contractAddress(init),
value: ton("0.1"), // pay for message, the deployment, and give some TON for storage
value: grams("0.1"), // pay for message, the deployment, and give some TON for storage
mode: SendIgnoreErrors,
code: init.code, // attaching the `StateInit` will cause the message to deploy
data: init.data,
Expand Down
4 changes: 2 additions & 2 deletions content/tvm/exit-codes.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -524,11 +524,11 @@ If all funds of the inbound message with base `mode` 64 set have already been co

<Callout>
If the optional `mode` flag +2 is set, this error won't be thrown, and the given message won't be sent.
</Callout>


### 38: Not enough extra currencies

Besides the native currency, GRAM, TON Blockchain supports up to $2^{32}$ extra currencies. They differ from creating new Jettons because extra currencies are natively supported — one can potentially just specify an additional `HashmapE` of extra currency amounts in addition to the GRAM amount in the internal message to another contract. Unlike Jettons, extra currencies can only be stored and transferred and do not have any other functionality.
Besides the native currency, Toncoin, TON Blockchain supports up to $2^{32}$ extra currencies. They differ from creating new Jettons because extra currencies are natively supported — one can potentially just specify an additional `HashmapE` of extra currency amounts in addition to the Toncoin amount in the internal message to another contract. Unlike Jettons, extra currencies can only be stored and transferred and do not have any other functionality.

When there is not enough extra currency to send the specified amount, an exit code 38 is thrown: `Not enough extra currencies`.

Expand Down
Loading