-
Notifications
You must be signed in to change notification settings - Fork 1
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
PSP61 #1
base: master
Are you sure you want to change the base?
PSP61 #1
Conversation
This reverts commit c1c01c8.
PSPs/drafts/psp-61.md
Outdated
fn assure_ids_are_proper() { | ||
let contract = Contract::new(); | ||
|
||
assert_eq!(contract.ownable_id(), ownable::ownable_external::TRAIT_ID); |
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.
it should be exposed from external so we can do ownable::TRAIT_ID
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.
what if we will have multiple trait_definitions in the single file?
i think the current approach is the most stress-free
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.
Can you add here some way to detect if contract support psp61? like here: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-165.md#how-to-detect-if-a-contract-implements-erc-165
In OpenBrush it's done by default, in PSP I don't think it's necessary to do that |
No description provided.