Updated mix_id to correctly use u32 as opposed to u64

This commit is contained in:
Jędrzej Stuczyński
2022-08-25 16:28:39 +01:00
parent 3d9ee1e0c1
commit 4cfea04475
3 changed files with 4 additions and 4 deletions
@@ -238,7 +238,7 @@ pub enum V2MigrationOperation {
proxy: Option<Addr>,
#[serde(rename = "a4")]
new_mix_id: Option<u64>,
new_mix_id: Option<u32>,
},
#[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,
@@ -123,7 +123,7 @@ pub enum ExecuteMsg {
AuthorisedUpdateToV2 {
owner: String,
node_identity: IdentityKey,
mix_id: u64,
mix_id: u32,
},
}
+1 -1
View File
@@ -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");