-
Notifications
You must be signed in to change notification settings - Fork 10
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
Conversation
src/set_nft/systems.cairo
Outdated
@@ -58,16 +59,21 @@ fn transfer_briqs( | |||
} | |||
} | |||
|
|||
|
|||
const CONTRACT_ADDRESS_MASK: felt252 = | |||
0xffffffffffffffffffffffffffffffffffffffffffffffff; // 2**192 - 1; |
There was a problem hiding this comment.
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 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actually no xD
src/set_nft/systems.cairo
Outdated
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; |
There was a problem hiding this comment.
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
No description provided.