Skip to content

Commit

Permalink
Get contract names from env
Browse files Browse the repository at this point in the history
  • Loading branch information
p-offtermatt committed Jul 1, 2024
1 parent 68bfbd9 commit 146d08e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contracts/atom_wars/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ use crate::state::{
};

/// Contract name that is used for migration.
const CONTRACT_NAME: &str = "atom_wars";
const CONTRACT_NAME: &str = env!("CARGO_PKG_NAME");
/// Contract version that is used for migration.
const CONTRACT_VERSION: &str = env!("CARGO_PKG_VERSION");

Expand Down
2 changes: 1 addition & 1 deletion contracts/tribute/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use atom_wars::query::QueryMsg as AtomWarsQueryMsg;
use atom_wars::state::{Proposal, Vote};

/// Contract name that is used for migration.
const CONTRACT_NAME: &str = "tribute";
const CONTRACT_NAME: &str = env!("CARGO_PKG_NAME");
/// Contract version that is used for migration.
const CONTRACT_VERSION: &str = env!("CARGO_PKG_VERSION");

Expand Down

0 comments on commit 146d08e

Please sign in to comment.