Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix of non-existing encode_tvc function mentions #1052

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
4 changes: 2 additions & 2 deletions docs/reference/types-and-methods/mod_abi.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Provides message encoding and decoding according to the ABI specification.

[update_initial_data](mod\_abi.md#update_initial_data) – Updates initial account data with initial values for the contract's static variables and owner's public key. This operation is applicable only for initial account data (before deploy). If the contract is already deployed, its data doesn't contain this data section any more.

[encode_initial_data](mod\_abi.md#encode_initial_data) – Encodes initial account data with initial values for the contract's static variables and owner's public key into a data BOC that can be passed to `encode_tvc` function afterwards.
[encode_initial_data](mod\_abi.md#encode_initial_data) – Encodes initial account data with initial values for the contract's static variables and owner's public key into a data BOC that can be passed to `boc.encode_external_in_message` function afterwards.

[decode_initial_data](mod\_abi.md#decode_initial_data) – Decodes initial values of a contract's static variables and owner's public key from account initial data This operation is applicable only for initial account data (before deploy). If the contract is already deployed, its data doesn't contain this data section any more.

Expand Down Expand Up @@ -641,7 +641,7 @@ NOTE: Sync version is available only for `lib-node` binding.

## encode_initial_data

Encodes initial account data with initial values for the contract's static variables and owner's public key into a data BOC that can be passed to `encode_tvc` function afterwards.
Encodes initial account data with initial values for the contract's static variables and owner's public key into a data BOC that can be passed to `boc.encode_external_in_message` function afterwards.

This function is analogue of `tvm.buildDataInit` function in Solidity.

Expand Down
2 changes: 1 addition & 1 deletion docs/reference/types-and-methods/modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ Where:

[update_initial_data](mod\_abi.md#update_initial_data) – Updates initial account data with initial values for the contract's static variables and owner's public key. This operation is applicable only for initial account data (before deploy). If the contract is already deployed, its data doesn't contain this data section any more.

[encode_initial_data](mod\_abi.md#encode_initial_data) – Encodes initial account data with initial values for the contract's static variables and owner's public key into a data BOC that can be passed to `encode_tvc` function afterwards.
[encode_initial_data](mod\_abi.md#encode_initial_data) – Encodes initial account data with initial values for the contract's static variables and owner's public key into a data BOC that can be passed to `boc.encode_external_in_message` function afterwards.

[decode_initial_data](mod\_abi.md#decode_initial_data) – Decodes initial values of a contract's static variables and owner's public key from account initial data This operation is applicable only for initial account data (before deploy). If the contract is already deployed, its data doesn't contain this data section any more.

Expand Down
2 changes: 1 addition & 1 deletion ton_client/src/abi/init_data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ pub struct ResultOfEncodeInitialData {
}

/// Encodes initial account data with initial values for the contract's static variables and owner's
/// public key into a data BOC that can be passed to `encode_tvc` function afterwards.
/// public key into a data BOC that can be passed to `boc.encode_external_in_message` function afterwards.
///
/// This function is analogue of `tvm.buildDataInit` function in Solidity.
#[api_function]
Expand Down