Skip to content

Commit

Permalink
Canister sdk v18 (#183)
Browse files Browse the repository at this point in the history
  • Loading branch information
F3kilo authored Jul 10, 2024
1 parent 44f9a98 commit 8e98582
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
10 changes: 5 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }
Expand Down
11 changes: 10 additions & 1 deletion src/minter-did/src/order.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -221,6 +221,15 @@ impl<'v> Visitor<'v> for SignedMintOrderVisitor {
}
}

impl Serialize for SignedMintOrder {
fn serialize<S>(&self, serializer: S) -> std::prelude::v1::Result<S::Ok, S::Error>
where
S: serde::Serializer,
{
serializer.serialize_bytes(&self.0)
}
}

impl<'de> Deserialize<'de> for SignedMintOrder {
fn deserialize<D>(deserializer: D) -> std::result::Result<Self, D::Error>
where
Expand Down

0 comments on commit 8e98582

Please sign in to comment.