CosmWasm / sylvia

CosmWasm smart contract framework
Apache License 2.0
96 stars 16 forks source link

Methods in multitest proxy are generated using interfaces module as Ident instead of Path #212

Closed jawoznia closed 1 year ago

jawoznia commented 1 year ago

Current behavior

If we specify module in which interface is defined as Path sylvia will treat it as Ident.

#[contract]
#[messages(crate::interface as Interface)]
impl Interface for Contract {
...
} 

will generate f.e.

let msg = crate::ExecMsg::new(...);

Expected behavior

Sylvia should use full path.

let msg = crate::interface::ExecMsg::new(...);