From 490e0e49bec7ff3f531ef118194272f5d3a2086f Mon Sep 17 00:00:00 2001 From: Arnaud Mimart <33665250+amimart@users.noreply.github.com> Date: Wed, 15 Nov 2023 16:37:39 +0100 Subject: [PATCH] build: specify library feature to imported contracts when linking a contract to another we may encounter C symbol duplication caused by the export of contract's entrypoints, we avoid that this way. --- Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 7b4496fa..1f149fb4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,8 +10,8 @@ cw-storage-plus = "1.2.0" cw-utils = "1.0.2" cw2 = "1.1.1" okp4-logic-bindings = { path = "packages/okp4-logic-bindings" } -okp4-objectarium = { path = "contracts/okp4-objectarium" } -okp4-cognitarium = { path = "contracts/okp4-cognitarium" } +okp4-objectarium = { path = "contracts/okp4-objectarium", features = ["library"] } +okp4-cognitarium = { path = "contracts/okp4-cognitarium", features = ["library"] } okp4-objectarium-client = { path = "packages/okp4-objectarium-client" } schemars = "0.8.16" serde = { version = "1.0.192", default-features = false, features = ["derive"] }