ton-org / blueprint

TON development for professionals - all-in-one tool for writing, testing and deploying smart contracts
319 stars 52 forks source link

Missing `getContractState` method in `TonClient` TypeScript definitions #104

Open UltronOne opened 1 month ago

UltronOne commented 1 month ago

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

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.

Thank you!

dev1line commented 3 weeks ago

the same issue