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

rofl build sgx: Automatically define env variable with the latest state root #291

Open
matevz opened this issue Sep 19, 2024 · 0 comments
Open
Labels
enhancement New feature or request rofl ROFL related CLI issues

Comments

@matevz
Copy link
Member

matevz commented Sep 19, 2024

Currently the state root is hardcoded inside each ROFL source code which looks awful:
https://github.com/oasisprotocol/oasis-sdk/blob/8545062a0a86f0567ce63ac549bada917019dfab/examples/runtime-sdk/rofl-oracle/src/main.rs#L22-L28

Let the Oasis CLI do the detection based on the provided network and ParaTime and store it inside an env variable before compilation, if it's a production build. Otherwise leave undefined. In the example above, a developer would simply read an env variable content if set or use None otherwise.

@matevz matevz added enhancement New feature or request rofl ROFL related CLI issues labels Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request rofl ROFL related CLI issues
Projects
None yet
Development

No branches or pull requests

1 participant