Skip to content

Commit

Permalink
Fix account id params
Browse files Browse the repository at this point in the history
Signed-off-by: deniallugo <[email protected]>
  • Loading branch information
Deniallugo committed Apr 18, 2021
1 parent ebaf5b2 commit 626095a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/lib/crypto/src/params.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());

Expand Down

0 comments on commit 626095a

Please sign in to comment.