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

PSP61 #1

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

PSP61 #1

wants to merge 3 commits into from

Conversation

varex83
Copy link

@varex83 varex83 commented Jul 19, 2023

No description provided.

PSPs/drafts/psp-61.md Outdated Show resolved Hide resolved
PSPs/drafts/psp-61.md Show resolved Hide resolved
PSPs/drafts/psp-61.md Show resolved Hide resolved
fn assure_ids_are_proper() {
let contract = Contract::new();

assert_eq!(contract.ownable_id(), ownable::ownable_external::TRAIT_ID);

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

Copy link
Author

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

PSPs/drafts/psp-61.md Outdated Show resolved Hide resolved
Copy link

@Artemka374 Artemka374 left a 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

@varex83
Copy link
Author

varex83 commented Jul 25, 2023

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

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.

3 participants