From 626095a10c23d42b568a14fc300361c2f4939f9f Mon Sep 17 00:00:00 2001 From: deniallugo Date: Sun, 18 Apr 2021 06:30:17 +0300 Subject: [PATCH] Fix account id params Signed-off-by: deniallugo --- core/lib/crypto/src/params.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/lib/crypto/src/params.rs b/core/lib/crypto/src/params.rs index 27f94ebd3c..ae174aff73 100644 --- a/core/lib/crypto/src/params.rs +++ b/core/lib/crypto/src/params.rs @@ -50,14 +50,14 @@ pub fn number_of_processable_tokens() -> usize { pub const NFT_TOKEN_ID: TokenId = TokenId(u32::MAX - 1); /// Special account which enforce unique token id for NFT. -pub const NFT_STORAGE_ACCOUNT_ID: AccountId = AccountId(u32::MAX - 1); +pub const NFT_STORAGE_ACCOUNT_ID: AccountId = AccountId(16777216 - 1); /// First token id for NFT, all fungible token id must be less, all NFT must be above. pub const MIN_NFT_TOKEN_ID: u32 = 65536; /// Depth of the left subtree of the account tree that can be used in the current version of the circuit. pub fn used_account_subtree_depth() -> usize { - let num = 32; // total accounts = 2.pow(num) ~ 16mil + let num = 24; // total accounts = 2.pow(num) ~ 16mil assert!(num <= account_tree_depth());