Closed maurolacy closed 7 months ago
@jawoznia we should address it
The issue appears when implementing interface on contract.
Currently if impl Interface for Contract
is in different module than Contract
itself you need to provide path to the contract file via f.e. #[contract(module=crate::contract)
. It is described in Macro attributes
section in README
.
I will add info in the troubleshooting section and think about better explanation in whole README
Most probably we should add am ~warning~ error if module=
is not there, as it would be needed in 99% of cases. The additional module=self
syntax should be introduced to point to the "local" module and silence a warning if it is intended.
Dupe of #164
Since sylvia 0.5.0 it's necessary to add
use crate::contract::BoundQuerier;
before using the
#[contract]
macro.Either document this, or include the use directive directly in the macro (or directly qualify the
BoundQuerier
usage).