inkdevhub / drink

De-chained Ready-to-play ink! playground
Apache License 2.0
69 stars 15 forks source link

Non-contract build error #108

Closed kroist closed 8 months ago

kroist commented 8 months ago

As stated here, https://github.com/inkdevhub/drink/blob/e49347148c64339123c8ca958c27e3447f69e652/drink/test-macro/src/contract_building.rs#L32 drink tries to build crate's contract, when the crate has ink-as-dependency feature.

The problem occurs, when the:

cargo metadata returns the metadata for the workspace, not for the current crate.

Actually, it seems that the only workaround would be do exclude the drink test package from the workspace.

https://github.com/rust-lang/cargo/issues/7754