Description
I encountered a TypeScript error when trying to use the getContractState method on the TonClient. The method seems not to exist on the type TonClient4 | TonClient, which leads to a compilation error. I am following the official documentation (or specific guide/tutorial - if applicable, provide the link) to deploy a smart contract on the TON blockchain.
Library Version
TON SDK version: "@ton/blueprint": "^0.19.0",
Steps to Reproduce
run this line
const contractState = await api.getContractState(minterAddress);
Expected Behavior
The getContractState method should be available and callable on the TonClient instance to fetch the current state of a smart contract.
Actual Behavior
TypeScript compilation error stating that getContractState does not exist on the TonClient4 | TonClient.
Could someone please clarify if this method has been removed, deprecated, or replaced in the latest version of the SDK? Any guidance on how to properly obtain a contract's state using the current SDK version would also be appreciated.
Description I encountered a TypeScript error when trying to use the
getContractState
method on theTonClient
. The method seems not to exist on the typeTonClient4 | TonClient
, which leads to a compilation error. I am following the official documentation (or specific guide/tutorial - if applicable, provide the link) to deploy a smart contract on the TON blockchain.Library Version
Steps to Reproduce run this line const contractState = await api.getContractState(minterAddress);
Expected Behavior The
getContractState
method should be available and callable on theTonClient
instance to fetch the current state of a smart contract.Actual Behavior TypeScript compilation error stating that
getContractState
does not exist on theTonClient4 | TonClient
.Could someone please clarify if this method has been removed, deprecated, or replaced in the latest version of the SDK? Any guidance on how to properly obtain a contract's state using the current SDK version would also be appreciated.
Thank you!