apps icon indicating copy to clipboard operation
apps copied to clipboard

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

Open KyrinCode opened this issue 9 months ago • 0 comments

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.

KyrinCode avatar May 20 '24 13:05 KyrinCode