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

feature/refactor-constants #30

Merged
merged 5 commits into from
Feb 13, 2025
Merged

Conversation

Le-Caignec
Copy link
Contributor

No description provided.

@Le-Caignec Le-Caignec self-assigned this Feb 13, 2025
@Le-Caignec Le-Caignec changed the title refactor constants feature/refactor-constants Feb 13, 2025
@gfournieriExec
Copy link
Contributor

Don't forget the changelog

Copy link
Contributor

@gfournieriExec gfournieriExec left a comment

Choose a reason for hiding this comment

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

some comments but after the fix, it will be good

Comment on lines 19 to 20
const APP_ID = '0x0e7bc972c99187c191a17f3cae4a2711a4188c3f';
const DATASET_ID = '0x123456789012345678901234567890abcdefabcd';
Copy link
Member

Choose a reason for hiding this comment

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

We can combine all appId, APP_ID, and eligibleAppId into a single constant and and it to the constants file.
And move (optionally):

WORKERPOOL_ID, INVALID_ASSET_ID, APP_REGISTRY_ADDRESS,
DATASET_REGISTRY_ADDRESS, WORKERPOOL_REGISTRY_ADDRESS,
POCO_ADDRESS, VOUCHER_HUB_ADDRESS 

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good
fix Commit: 1b8552b
It enables me to find a bug

Copy link
Member

@zguesmi zguesmi left a comment

Choose a reason for hiding this comment

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

Clean!

@gfournieriExec
Copy link
Contributor

Thanks :)

Copy link
Member

@jeremyjams jeremyjams left a comment

Choose a reason for hiding this comment

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

Ok, thanks for refactoring 👍

@Le-Caignec Le-Caignec merged commit 8ab0754 into develop Feb 13, 2025
@Le-Caignec Le-Caignec deleted the feature/refactor-constants branch February 13, 2025 16:59
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.

4 participants