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

Smart contracts should be given access to accounts for apps specified in the foreign apps array #3723

Closed
algoanne opened this issue Mar 7, 2022 · 2 comments · Fixed by #3994
Assignees
Labels
new-feature-request Feature request that needs triage Team Scytale

Comments

@algoanne
Copy link
Contributor

algoanne commented Mar 7, 2022

Problem

Currently, I have to separately specify the account for an application if I want to use it in my smart contract, even if I already specified that I will need access to the application itself.

Solution

Make it so the smart contract automatically has access to the app's address if it specifies the app in its foreign apps array.

@michaeldiamant
Copy link
Contributor

@algoanne
Copy link
Contributor Author

actually, probably want a stronger statement: you should have access to any app account for any app that is available to you. i.e. if it was created earlier in the transaction group.

Note that this story excludes writing to these app accounts that you get access to now implicitly - if you want to write to it, you still have to reference it in your foreign accounts array. (but you can still pay to it and read from it)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-feature-request Feature request that needs triage Team Scytale
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants