Skip to content

Commit

Permalink
Merge pull request #35 from public-awesome/shanev/update-versions
Browse files Browse the repository at this point in the history
Update versions and output contract name and versions
  • Loading branch information
shanev authored Feb 24, 2022
2 parents f7d4929 + b0ddf17 commit a964d20
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 10 deletions.
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion contracts/minter/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "minter"
version = "0.1.0"
version = "0.2.0"
authors = ["Jake Hartnell <[email protected]>"]
edition = "2018"

Expand Down
4 changes: 3 additions & 1 deletion contracts/minter/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,9 @@ pub fn instantiate(
}];

Ok(Response::new()
.add_attribute("action", "instantiate_minter")
.add_attribute("action", "instantiate")
.add_attribute("contract_name", CONTRACT_NAME)
.add_attribute("contract_version", CONTRACT_VERSION)
.add_submessages(sub_msgs))
}

Expand Down
5 changes: 4 additions & 1 deletion contracts/royalty-group/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ pub fn instantiate(
) -> Result<Response, ContractError> {
set_contract_version(deps.storage, CONTRACT_NAME, CONTRACT_VERSION)?;
create(deps, msg.admin, msg.members, env.block.height)?;
Ok(Response::default())
Ok(Response::default()
.add_attribute("action", "instantiate")
.add_attribute("contract_name", CONTRACT_NAME)
.add_attribute("contract_version", CONTRACT_VERSION))
}

// create is the instantiation logic with set_contract_version removed so it can more
Expand Down
2 changes: 1 addition & 1 deletion contracts/sg721/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "sg721"
version = "0.1.0"
version = "0.2.0"
authors = ["Shane Vitarana <[email protected]>"]
edition = "2018"

Expand Down
4 changes: 3 additions & 1 deletion contracts/sg721/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ pub fn instantiate(
// TODO: add community pool fund msg
// https://github.com/public-awesome/contracts/issues/99
Ok(Response::default()
.add_attribute("action", "instantiate_sg721")
.add_attribute("action", "instantiate")
.add_attribute("contract_name", CONTRACT_NAME)
.add_attribute("contract_version", CONTRACT_VERSION)
.add_message(send_fee_msg)
.add_message(fee_burn_msg))
}
Expand Down
2 changes: 1 addition & 1 deletion contracts/whitelist/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "whitelist"
version = "0.1.0"
version = "0.2.0"
authors = ["Shane Vitarana <[email protected]>"]
edition = "2018"

Expand Down
4 changes: 3 additions & 1 deletion contracts/whitelist/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ pub fn instantiate(
}

Ok(Response::new()
.add_attribute("method", "instantiate_whitelist")
.add_attribute("method", "instantiate")
.add_attribute("contract_name", CONTRACT_NAME)
.add_attribute("contract_version", CONTRACT_VERSION)
.add_attribute("sender", info.sender)
.add_messages(fee_msgs))
}
Expand Down

0 comments on commit a964d20

Please sign in to comment.