Skip to content

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

@KyrinCode

Description

@KyrinCode

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions