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

Article: Direct & indirect approaches to reading contract state variables in Tact Language #564

Closed
seriybeliy11 opened this issue Apr 19, 2024 · 1 comment
Labels

Comments

@seriybeliy11
Copy link
Contributor

seriybeliy11 commented Apr 19, 2024

Summary

This material should be a guide for Tact developers who want to understand and implement methods for reading state variables from other contracts. It should cover the limitations of direct getter calls and explore alternative solutions available when you control both contracts' code.

Context

In the realm of Tact smart contract development, effectively accessing data from other contracts is paramount for building interconnected and data-driven applications. While direct getter calls might seem like an obvious approach, Tact imposes certain limitations on this method. This article delves into the intricacies of reading contract state variables, exploring both direct and indirect approaches, and providing a comprehensive overview of the rationale behind its creation.

Learning goals

Сonsumers will acquire a comprehensive understanding of the different strategies available for reading contract state variables in smart contract development, along with the considerations and trade-offs associated with each approach.

References

The official Tact documentation is a great starting point: https://github.com/tact-lang/tact
Our issue: tact-lang/tact#1153

Estimate suggested reward

300$

@seriybeliy11 seriybeliy11 changed the title Article: Direct and Indirect Approaches to Reading Contract State Variables in Tact Article: Direct & indirect approaches to reading contract state variables in Tact Language Apr 19, 2024
@delovoyhomie
Copy link
Collaborator

@seriybeliy11, this example is too brief for a full article. Let's agree that when we create a new cookbook for the Tact, you will definitely take on this task.

@delovoyhomie delovoyhomie closed this as not planned Won't fix, can't repro, duplicate, stale Jun 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants