From 32c69cdca455976d4c1ba3eb7026808cd670d341 Mon Sep 17 00:00:00 2001 From: Chad Ostrowski <221614+chadoh@users.noreply.github.com> Date: Thu, 22 Oct 2026 11:13:14 -0400 Subject: [PATCH] fix: stop new projects inheriting Scaffold's authors and repository The example contracts inherited `authors` and `repository` from the workspace, set to The Aha Company and the Scaffold CLI repo. Their `cargo_inherit` metadata writes those into the Wasm, so contracts built or published from a new project claimed to come from us. Projects now start with these values and also `homepage` set to blank values, and all member contracts set to inherit them, with a comment in the root Cargo.toml telling people to set the values. Corresponding change stellar-scaffold/cli#640 ensures blank `home_domain` and `source_repo` values don't end up in the Wasm. --- Cargo.toml | 6 ++++-- contracts/fungible-allowlist/Cargo.toml | 8 +++++++- contracts/guess-the-number/Cargo.toml | 4 +++- contracts/nft-enumerable/Cargo.toml | 8 +++++++- 4 files changed, 21 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index b296dbe8..55265565 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,11 +3,13 @@ members = ["contracts/*"] resolver = "2" [workspace.package] -authors = ["The Aha Company"] edition = "2024" license = "Apache-2.0" -repository = "https://github.com/stellar-scaffold/cli" version = "0.0.2" +# Optional: fill these in to include your project's metadata in contract Wasm. +authors = [] +homepage = "" +repository = "" [workspace.dependencies] soroban-sdk = "28.0.0" diff --git a/contracts/fungible-allowlist/Cargo.toml b/contracts/fungible-allowlist/Cargo.toml index 4cf40c51..2bbe350a 100644 --- a/contracts/fungible-allowlist/Cargo.toml +++ b/contracts/fungible-allowlist/Cargo.toml @@ -2,9 +2,15 @@ name = "fungible-allowlist-example" edition.workspace = true license.workspace = true -repository.workspace = true publish = false version.workspace = true +authors.workspace = true +homepage.workspace = true +repository.workspace = true + +[package.metadata.stellar] +# Set contract metadata for authors, homepage, and version based on the Cargo.toml package values +cargo_inherit = true [lib] crate-type = ["cdylib"] diff --git a/contracts/guess-the-number/Cargo.toml b/contracts/guess-the-number/Cargo.toml index d529773c..f2677e8d 100644 --- a/contracts/guess-the-number/Cargo.toml +++ b/contracts/guess-the-number/Cargo.toml @@ -3,9 +3,11 @@ name = "guess-the-number" description = "Admin sets up the pot, anyone can guess to win it" edition.workspace = true license.workspace = true -repository.workspace = true publish = false version.workspace = true +authors.workspace = true +homepage.workspace = true +repository.workspace = true [package.metadata.stellar] # Set contract metadata for authors, homepage, and version based on the Cargo.toml package values diff --git a/contracts/nft-enumerable/Cargo.toml b/contracts/nft-enumerable/Cargo.toml index 8394aecc..5bd6bc1e 100644 --- a/contracts/nft-enumerable/Cargo.toml +++ b/contracts/nft-enumerable/Cargo.toml @@ -2,9 +2,15 @@ name = "nft-enumerable-example" edition.workspace = true license.workspace = true -repository.workspace = true publish = false version.workspace = true +authors.workspace = true +homepage.workspace = true +repository.workspace = true + +[package.metadata.stellar] +# Set contract metadata for authors, homepage, and version based on the Cargo.toml package values +cargo_inherit = true [lib] crate-type = ["cdylib"]