You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to directly access the contract storage in the component makes the component dependent on the contract, and this is imo an antipattern since components should depend only on other components or abstractions (traits) to support better composability.
We should get away with get_contract()here and use a generic implmentation of the trait to call the function.
Trying to directly access the contract storage in the component makes the component dependent on the contract, and this is imo an antipattern since components should depend only on other components or abstractions (traits) to support better composability.
We should get away with
get_contract()
here and use a generic implmentation of the trait to call the function.Can take a look at here for inspiration.
The text was updated successfully, but these errors were encountered: