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

starknet_multiple_contracts example refurbishment #1543

Conversation

stranger80
Copy link
Contributor

@stranger80 stranger80 commented Aug 25, 2024

The https://github.com/software-mansion/scarb/blob/main/examples/starknet_multiple_contracts/src/forty_two.cairo sample included a 'shorthand' styled contract code (no explicitly specified contract interface), and the answer() method is interpreted as a 'write' method by the compiler, even though it does not alter state.

The proposed contract code is hopefully less confusing.

…dent shape and clearly indicate answer() method as read.
@maciektr maciektr added this pull request to the merge queue Aug 26, 2024
@maciektr
Copy link
Contributor

Thank you for pointing this out @stranger80 ! 🔥

Merged via the queue into software-mansion:main with commit adc945a Aug 26, 2024
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants