Skip to content

Commit

Permalink
Merge pull request #327 from public-awesome/tasiov/blake256-order-ids
Browse files Browse the repository at this point in the history
Use blake256 instead of 512
  • Loading branch information
jhernandezb authored Oct 22, 2024
2 parents 7034b3a + cb300b1 commit cc7f729
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/stargaze-marketplace-v2/src/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use crate::{
ContractError,
};

use blake2::{Blake2b512, Digest};
use blake2::{Blake2s256, Digest};
use cosmwasm_std::{
ensure, ensure_eq, Addr, Coin, Decimal, DepsMut, Env, Event, MessageInfo, QuerierWrapper,
Response, Storage, Uint128,
Expand All @@ -21,7 +21,7 @@ pub fn build_collection_token_index_str(collection: &str, token_id: &TokenId) ->
}

pub fn generate_id(components: Vec<&[u8]>) -> String {
let mut hasher = Blake2b512::new();
let mut hasher = Blake2s256::new();
for component in components {
hasher.update(component);
}
Expand Down

0 comments on commit cc7f729

Please sign in to comment.