Skip to content

Commit

Permalink
use bech32 for handling real addresses (e.g. stars1... instead of sim…
Browse files Browse the repository at this point in the history
…ple string)
  • Loading branch information
taitruong committed Aug 13, 2024
1 parent d423d0a commit 6382bda
Show file tree
Hide file tree
Showing 5 changed files with 290 additions and 81 deletions.
13 changes: 11 additions & 2 deletions Cargo.lock

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

3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ documentation = "https://docs.cosmwasm.com"
rust-version = "1.78"

[workspace.dependencies]
anyhow = "^1.0"
bech32 = "^0.11"
cosmwasm-schema = "^1.5"
cosmwasm-std = "^1.5"
cw2 = "^1.1"
Expand All @@ -30,6 +32,7 @@ cw-storage-plus = "^1.1"
cw-utils = "^1.0"
schemars = "^0.8"
serde = { version = "^1.0", default-features = false, features = ["derive"] }
sha2 = "^0.10"
thiserror = "^1.0"
url = "^2.5"

Expand Down
3 changes: 3 additions & 0 deletions packages/cw721/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,12 @@ thiserror = { workspace = true }
url = { workspace = true }

[dev-dependencies]
anyhow = { workspace = true }
bech32 = { workspace = true }
cw-multi-test = { workspace = true }
cw721-base-015 = { workspace = true, features = ["library"] }
cw721-base-016 = { workspace = true, features = ["library"] }
cw721-metadata-onchain-016 = { workspace = true}
cw721-base-017 = { workspace = true, features = ["library"] }
cw721-base-018 = { workspace = true, features = ["library"] }
sha2 = { workspace = true }
2 changes: 1 addition & 1 deletion packages/cw721/src/execute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ pub fn migrate_minter(
Cw721MigrateMsg::WithUpdate { minter, .. } => {
if let Some(minter) = minter {
MINTER.initialize_owner(storage, api, Some(minter.as_str()))?;
return Ok(response.add_attribute("creator", minter));
return Ok(response.add_attribute("minter", minter));
}
}
}
Expand Down
Loading

0 comments on commit 6382bda

Please sign in to comment.