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

How to get shared object that was depended in other packages in test_scenario? #45

Open
KyrinCode opened this issue May 20, 2024 · 0 comments

Comments

@KyrinCode
Copy link

I tried to depend on the mainnet weather oracle, and a function in my own package takes a &oracle::weather::WeatherOracle object as parameter. How can I get the shared WeatherOracle object or create a object like using create_for_testing method for some incline struct (balance, clock) in test_scenario? Since without this, I cannot test my function locally.

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

1 participant