Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: delete outdated serde json #312

Merged
merged 3 commits into from
Jun 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion contracts/call-number/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ cosmwasm-std = { path = "../../packages/std", features = ["iterator"] }
cosmwasm-storage = { path = "../../packages/storage", features = ["iterator"] }
schemars = "0.8.1"
serde = { version = "1.0.125", default-features = false, features = ["derive"] }
thiserror = { version = "1.0.24" }
thiserror = "1.0.24"

[dev-dependencies]
cosmwasm-schema = { path = "../../packages/schema" }
Expand Down
1 change: 0 additions & 1 deletion contracts/dynamic-callee-contract/Cargo.lock

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

3 changes: 1 addition & 2 deletions contracts/dynamic-callee-contract/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ cosmwasm-std = { path = "../../packages/std", features = ["iterator"] }
cosmwasm-storage = { path = "../../packages/storage", features = ["iterator"] }
schemars = "0.8.1"
serde = { version = "1.0.125", default-features = false, features = ["derive"] }
thiserror = { version = "1.0.24" }
serde_json = "1.0"
thiserror = "1.0.24"

[dev-dependencies]
cosmwasm-schema = { path = "../../packages/schema" }
Expand Down
1 change: 0 additions & 1 deletion contracts/dynamic-caller-contract/Cargo.lock

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

3 changes: 1 addition & 2 deletions contracts/dynamic-caller-contract/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ cosmwasm-std = { path = "../../packages/std", features = ["iterator"] }
cosmwasm-storage = { path = "../../packages/storage", features = ["iterator"] }
schemars = "0.8.1"
serde = { version = "1.0.125", default-features = false, features = ["derive"] }
thiserror = { version = "1.0.24" }
serde_json = "1.0"
thiserror = "1.0.24"
wasmer-types = "2.3"

[dev-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion contracts/dynamic-caller-contract/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ pub fn try_validate_interface_err(deps: Deps, _env: Env) -> Result<Response, Con
"not_exist",
([wasmer_types::Type::I32], [wasmer_types::Type::I32]).into(),
)];
let binary_err_interface = serde_json::to_vec(&err_interface).unwrap();
let binary_err_interface = to_vec(&err_interface).unwrap();
deps.api
.validate_dynamic_link_interface(&address, &binary_err_interface)?;
Ok(Response::default())
Expand Down
2 changes: 1 addition & 1 deletion contracts/events/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ cosmwasm-std = { path = "../../packages/std", features = ["iterator"] }
cosmwasm-storage = { path = "../../packages/storage", features = ["iterator"] }
schemars = "0.8.1"
serde = { version = "1.0.125", default-features = false, features = ["derive"] }
thiserror = { version = "1.0.24" }
thiserror = "1.0.24"

[dev-dependencies]
cosmwasm-schema = { path = "../../packages/schema" }
Expand Down
2 changes: 1 addition & 1 deletion contracts/intermediate-number/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ cosmwasm-std = { path = "../../packages/std", features = ["iterator"] }
cosmwasm-storage = { path = "../../packages/storage", features = ["iterator"] }
schemars = "0.8.1"
serde = { version = "1.0.125", default-features = false, features = ["derive"] }
thiserror = { version = "1.0.24" }
thiserror = "1.0.24"

[dev-dependencies]
cosmwasm-schema = { path = "../../packages/schema" }
Expand Down
1 change: 0 additions & 1 deletion contracts/number/Cargo.lock

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

3 changes: 1 addition & 2 deletions contracts/number/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ cosmwasm-std = { path = "../../packages/std", features = ["iterator"] }
cosmwasm-storage = { path = "../../packages/storage", features = ["iterator"] }
schemars = "0.8.1"
serde = { version = "1.0.125", default-features = false, features = ["derive"] }
thiserror = { version = "1.0.24" }
serde_json = "1.0"
thiserror = "1.0.24"

[dev-dependencies]
cosmwasm-schema = { path = "../../packages/schema" }
Expand Down
1 change: 0 additions & 1 deletion contracts/simple-callee/Cargo.lock

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

3 changes: 1 addition & 2 deletions contracts/simple-callee/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ cosmwasm-std = { path = "../../packages/std", features = ["iterator"] }
cosmwasm-storage = { path = "../../packages/storage", features = ["iterator"] }
schemars = "0.8.1"
serde = { version = "1.0.125", default-features = false, features = ["derive"] }
thiserror = { version = "1.0.24" }
serde_json = "1.0"
thiserror = "1.0.24"

[dev-dependencies]
cosmwasm-schema = { path = "../../packages/schema" }
Expand Down
2 changes: 1 addition & 1 deletion contracts/voting-with-uuid/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ cosmwasm-storage = { path = "../../packages/storage"}
schemars = "0.8.1"
serde = { version = "1.0.125", default-features = false, features = ["derive"] }
hex = "0.4"
thiserror = { version = "1.0.23" }
thiserror = "1.0.23"

[dev-dependencies]
cosmwasm-schema = { path = "../../packages/schema" }
Expand Down
5 changes: 0 additions & 5 deletions packages/derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,7 @@ pub fn entry_point(_attr: TokenStream, item: TokenStream) -> TokenStream {
/// This macro generates callable points for functions with `#[callable_point]`
/// which can be called with dynamic link.
///
/// To use this macro, the contract must declare the import
/// `serde_json = "1.0"`
/// in Cargo.toml
///
/// `#[callable_point]` is used as a mark, not as an attribute macro.
///
/// Functions with `#[callable_point]` are exposed to the outside world,
/// those without `#[callable_point]` are not.
///
Expand Down