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

Enhanace generator instances to whitelist creation instance #43

Open
lllwvlvwlll opened this issue Mar 29, 2022 · 1 comment
Open

Enhanace generator instances to whitelist creation instance #43

lllwvlvwlll opened this issue Mar 29, 2022 · 1 comment

Comments

@lllwvlvwlll
Copy link
Member

Currently, generator instances only support automatic whitelisting of a the creator's address. This enhancement will expose a generator instance creation path which automatically whitelists the scriptHash of the creating contract as well as a code (when an instance is created in-contract). This will enable generator instances to be instantiated and immediately used within contracts.

A good example usecase for this routine is the random occurrence of some object which needs to be procedurally generated at the time of occurrence. By calling a create generator instance method, the user receives the instance ID and can immediately use the instance which the need for a second contract call to whitelist the calling instance.

@roschler
Copy link

@lllwvlvwlll "which the need for a second contract call to whitelist the calling instance."

without the need for a second contract call to whitelist the calling instance ?

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

No branches or pull requests

2 participants