Skip to content

Commit

Permalink
fix: Missing Deserialize for Stats
Browse files Browse the repository at this point in the history
  • Loading branch information
veeso committed Apr 16, 2024
1 parent 2de3eab commit 66b7323
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
# Changelog

- [Changelog](#changelog)
- [0.1.2](#012)
- [0.1.1](#011)
- [0.1.0](#010)

---

## 0.1.2

Released on 16/04/2024

- fix: Missing `Deserialize` for `Stats`

## 0.1.1

Released on 15/04/2024
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "dip721-rs"
version = "0.1.1"
version = "0.1.2"
authors = ["Christian Visintin <christian.visintin@veeso.dev>"]
edition = "2021"
categories = ["wasm", "web-programming"]
Expand Down
4 changes: 2 additions & 2 deletions src/canister.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use candid::{CandidType, Deserialize, Nat, Principal};
use thiserror::Error;

/// Metadata for a DIP721 canister
#[derive(CandidType, Default, Deserialize)]
#[derive(CandidType, Deserialize, Debug, Clone, PartialEq, Eq)]
pub struct Metadata {
pub created_at: u64,
pub custodians: Vec<Principal>,
Expand All @@ -13,7 +13,7 @@ pub struct Metadata {
}

/// Canister stats
#[derive(CandidType)]
#[derive(CandidType, Deserialize, Debug, Clone, PartialEq, Eq)]
pub struct Stats {
pub cycles: Nat,
pub total_supply: Nat,
Expand Down

0 comments on commit 66b7323

Please sign in to comment.