-
Notifications
You must be signed in to change notification settings - Fork 30
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
feat(contracts): 454 single transaction ownership verifications #377
feat(contracts): 454 single transaction ownership verifications #377
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
|
||
let order_hash = order.compute_order_hash(); | ||
let order_info = order.into(); | ||
self.orders.write(order_hash, order_info); |
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.
i would add the original creator from the caller to be sure here so we can find it back i don't think we need the full order wdyt ?
just a key value:
order_hash: order_creator
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.
Creator of the order added in struct.
Description
This PR add verifications in starknet contract.
create_order
caller
is theofferer
.offerer
currency balance is at leaststart_amount
.offerer
is owner of NFT.fulfill_order
caller
is thefulfiller
.fulfiller
is owner of NFT.fulfiller
currency balance is at leaststart_amount
.What type of PR is this? (check all applicable)
feat:
)fix:
)docs:
)style:
)refactor:
)perf:
)test:
)build:
)ci:
)chore:
)revert:
)BREAKING CHANGE:
)Related Tickets & Documents
Added tests?
Added to documentation?
[optional] Are there any post-deployment tasks we need to perform?
[optional] What gif best describes this PR or how it makes you feel?
PR Title and Description Guidelines:
feat:
,fix:
,chore:
,BREAKING CHANGE:
etc. in your PR title.Closing Issues