diff --git a/Cargo.toml b/Cargo.toml index 745862d9..63431453 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -45,11 +45,11 @@ futures = { version = "0.3", default-features = false } hex = "0.4" # Newer version 0.13.3 breakes backward compatibility. Add this temporary fix until pocket-ic or ic-cdk crates are fixed. ic-cdk = "=0.13.2" -ic-canister = { git = "https://github.com/bitfinity-network/canister-sdk", package = "ic-canister", tag = "v0.17.x" } -ic-canister-client = { git = "https://github.com/bitfinity-network/canister-sdk", package = "ic-canister-client", tag = "v0.17.x" } -ic-exports = { git = "https://github.com/bitfinity-network/canister-sdk", package = "ic-exports", tag = "v0.17.x" } -ic-log = { git = "https://github.com/bitfinity-network/canister-sdk", package = "ic-log", tag = "v0.17.x" } -ic-stable-structures = { git = "https://github.com/bitfinity-network/canister-sdk", package = "ic-stable-structures", tag = "v0.17.x" } +ic-canister = { git = "https://github.com/bitfinity-network/canister-sdk", package = "ic-canister", tag = "v0.18.x" } +ic-canister-client = { git = "https://github.com/bitfinity-network/canister-sdk", package = "ic-canister-client", tag = "v0.18.x" } +ic-exports = { git = "https://github.com/bitfinity-network/canister-sdk", package = "ic-exports", tag = "v0.18.x" } +ic-log = { git = "https://github.com/bitfinity-network/canister-sdk", package = "ic-log", tag = "v0.18.x" } +ic-stable-structures = { git = "https://github.com/bitfinity-network/canister-sdk", package = "ic-stable-structures", tag = "v0.18.x" } itertools = "0.13" jsonrpc-core = "18.0" jsonrpsee = { version = "0.23", features = ["server", "macros"] } diff --git a/src/minter-did/src/order.rs b/src/minter-did/src/order.rs index 278eabd4..7aae2c3a 100644 --- a/src/minter-did/src/order.rs +++ b/src/minter-did/src/order.rs @@ -8,7 +8,7 @@ use eth_signer::sign_strategy::TransactionSigner; use ethers_core::utils::keccak256; use ic_stable_structures::{Bound, Storable}; use serde::de::Visitor; -use serde::Deserialize; +use serde::{Deserialize, Serialize}; use crate::error::{Error, Result}; use crate::id256::Id256; @@ -221,6 +221,15 @@ impl<'v> Visitor<'v> for SignedMintOrderVisitor { } } +impl Serialize for SignedMintOrder { + fn serialize(&self, serializer: S) -> std::prelude::v1::Result + where + S: serde::Serializer, + { + serializer.serialize_bytes(&self.0) + } +} + impl<'de> Deserialize<'de> for SignedMintOrder { fn deserialize(deserializer: D) -> std::result::Result where