Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix dojo merge issue & token_id to ContractAddress #20

Merged
merged 4 commits into from
Aug 31, 2023

Conversation

notV4l
Copy link
Contributor

@notV4l notV4l commented Aug 30, 2023

No description provided.

@notV4l notV4l changed the title chore: fix merge issue & token_id to ContractAddress chore: fix dojo merge issue & token_id to ContractAddress Aug 30, 2023
@@ -58,16 +59,21 @@ fn transfer_briqs(
}
}


const CONTRACT_ADDRESS_MASK: felt252 =
0xffffffffffffffffffffffffffffffffffffffffffffffff; // 2**192 - 1;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

C'est ce qu'il y a sur starknet ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually no xD

let hash = pedersen(0, owner.into());
let hash = pedersen(hash, token_id_hint);
let hash = pedersen(hash, nb_briqs.into());
hash

let masked = hash & CONTRACT_ADDRESS_MASK;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ça vaudrait le coup d'un commentaire

@wraitii wraitii merged commit 49d268e into briqNFT:dojo Aug 31, 2023
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants