Skip to content

Commit

Permalink
use altered snip721-reference-impl to define data to return on result
Browse files Browse the repository at this point in the history
  • Loading branch information
luca992 committed Mar 16, 2023
1 parent 5085120 commit a8f1f10
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 6 deletions.
5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,8 @@ codegen-units = 1
panic = 'abort'
incremental = false
overflow-checks = true

[workspace.dependencies]
snip721-reference-impl = { git = "https://github.com/eqoty-labs/snip721-reference-impl", rev = "5ae22b4" }
cosmwasm-contract-migratable-std = { git = "https://github.com/eqoty-labs/cosmwasm-contract-migratable-std", tag = "v2.0.0" }
serde = { version = "1.0.156", default-features = false, features = ["derive"] }
6 changes: 3 additions & 3 deletions contracts/snip721-dealer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ crate-type = ["cdylib", "rlib"]
#backtraces = ["cosmwasm-std/backtraces"]

[dependencies]
snip721-reference-impl = { git = "https://github.com/eqoty-labs/snip721-reference-impl", rev = "b92feaa" }
cosmwasm-contract-migratable-std = { git = "https://github.com/eqoty-labs/cosmwasm-contract-migratable-std", tag = "v2.0.0" }
snip721-reference-impl = { workspace = true }
cosmwasm-contract-migratable-std = { workspace = true }
serde = { workspace = true }
serde-cw-value = { version = "0.7.0" }
serde = { version = "1.0.155", default-features = false, features = ["derive"] }
schemars = "0.8.12"
cosmwasm-std = { git = "https://github.com/scrtlabs/cosmwasm", tag = "v1.1.9-secret" }
cosmwasm-storage = { git = "https://github.com/scrtlabs/cosmwasm", tag = "v1.1.9-secret" }
Expand Down
1 change: 1 addition & 0 deletions contracts/snip721-dealer/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ fn init_snip721(
enable_burn: Some(false),
}),
post_init_callback: None,
post_init_data: None,
});
let instantiate_wasm_msg = WasmMsg::Instantiate {
code_id: msg.snip721_code_id,
Expand Down
1 change: 1 addition & 0 deletions contracts/snip721-dealer/src/test_instantiate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,7 @@ mod tests {
enable_burn: Some(false),
}),
post_init_callback: None,
post_init_data: None,
});
assert_eq!(expected_snip721_instantiate_msg, snip721_instantiate_msg);
}
Expand Down
6 changes: 3 additions & 3 deletions contracts/snip721-migratable/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ crate-type = ["cdylib", "rlib"]
#backtraces = ["cosmwasm-std/backtraces"]

[dependencies]
snip721-reference-impl = { git = "https://github.com/eqoty-labs/snip721-reference-impl", rev = "b92feaa" }
cosmwasm-contract-migratable-std = { git = "https://github.com/eqoty-labs/cosmwasm-contract-migratable-std", tag = "v2.0.0" }
snip721-reference-impl = { workspace = true }
cosmwasm-contract-migratable-std = { workspace = true }
serde = { workspace = true }
serde-cw-value = { version = "0.7.0" }
serde = { version = "1.0.154", default-features = false, features = ["derive"] }
schemars = "0.8.12"
cosmwasm-std = { git = "https://github.com/scrtlabs/cosmwasm", tag = "v1.1.9-secret" }
cosmwasm-storage = { git = "https://github.com/scrtlabs/cosmwasm", tag = "v1.1.9-secret" }
Expand Down
1 change: 1 addition & 0 deletions contracts/snip721-migratable/src/contract_migrate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,7 @@ pub(crate) fn migrate(
enable_burn: Some(snip721config.burn_is_enabled),
}),
post_init_callback: None,
post_init_data: None,
},
migrate_from: MigrateFrom {
address: env.contract.address,
Expand Down
2 changes: 2 additions & 0 deletions contracts/snip721-migratable/src/test_migrate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ mod tests {
config: None,
symbol: "".to_string(),
post_init_callback: None,
post_init_data: None,
},
migrate_from: MigrateFrom {
address: env_0.contract.address.clone(),
Expand Down Expand Up @@ -348,6 +349,7 @@ mod tests {
config: None,
symbol: "".to_string(),
post_init_callback: None,
post_init_data: None,
},
migrate_from: MigrateFrom {
address: env_0.contract.address.clone(),
Expand Down
1 change: 1 addition & 0 deletions contracts/snip721-migratable/src/test_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ pub mod test_utils {
config: None,
symbol: "".to_string(),
post_init_callback: None,
post_init_data: None,
})
}
}

0 comments on commit a8f1f10

Please sign in to comment.