From 4cfea044751c73f268b8b5c8e42b7b7547cf8dc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C4=99drzej=20Stuczy=C5=84ski?= Date: Thu, 25 Aug 2022 16:28:39 +0100 Subject: [PATCH] Updated mix_id to correctly use u32 as opposed to u64 --- common/cosmwasm-smart-contracts/mixnet-contract/src/msg.rs | 4 ++-- .../cosmwasm-smart-contracts/vesting-contract/src/messages.rs | 2 +- contracts/vesting/src/storage.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/common/cosmwasm-smart-contracts/mixnet-contract/src/msg.rs b/common/cosmwasm-smart-contracts/mixnet-contract/src/msg.rs index f0029f783a..30ef407ecf 100644 --- a/common/cosmwasm-smart-contracts/mixnet-contract/src/msg.rs +++ b/common/cosmwasm-smart-contracts/mixnet-contract/src/msg.rs @@ -238,7 +238,7 @@ pub enum V2MigrationOperation { proxy: Option, #[serde(rename = "a4")] - new_mix_id: Option, + new_mix_id: Option, }, #[serde(rename = "m3")] @@ -304,7 +304,7 @@ pub enum SpecialV2ExecuteMsg { owner: Addr, #[serde(rename = "a2")] - mix_id: u64, + mix_id: u32, #[serde(rename = "a3")] amount: Coin, diff --git a/common/cosmwasm-smart-contracts/vesting-contract/src/messages.rs b/common/cosmwasm-smart-contracts/vesting-contract/src/messages.rs index 249880f21a..d5e4af3f18 100644 --- a/common/cosmwasm-smart-contracts/vesting-contract/src/messages.rs +++ b/common/cosmwasm-smart-contracts/vesting-contract/src/messages.rs @@ -123,7 +123,7 @@ pub enum ExecuteMsg { AuthorisedUpdateToV2 { owner: String, node_identity: IdentityKey, - mix_id: u64, + mix_id: u32, }, } diff --git a/contracts/vesting/src/storage.rs b/contracts/vesting/src/storage.rs index 96c263b0b8..597b23bc9f 100644 --- a/contracts/vesting/src/storage.rs +++ b/contracts/vesting/src/storage.rs @@ -6,7 +6,7 @@ use mixnet_contract_common::IdentityKey; use vesting_contract_common::PledgeData; pub(crate) type BlockTimestampSecs = u64; -pub(crate) type NodeId = u64; +pub(crate) type NodeId = u32; pub const KEY: Item<'_, u32> = Item::new("key"); const ACCOUNTS: Map<'_, String, Account> = Map::new("acc");