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

feat: upgrade DistributionCreator #36

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft

Conversation

nlecoufl
Copy link

No description provided.

else if (chain == CHAIN_MODE) return multiSendMode;
else if (chain == CHAIN_BLAST) return multiSendBlast;
else if (chain == CHAIN_XLAYER) return multiSendXLayer;
if (chain == Constants.CHAIN_ETHEREUM) return multiSendEthereum;
Copy link
Contributor

Choose a reason for hiding this comment

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

why did you have to explicitly write Constants. ?

Copy link
Author

Choose a reason for hiding this comment

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

Because of the changes made in utils PR#17. It's a better practice imo to explicitly import contracts, libs like this import {CommonUtils} from "../src/CommonUtils.sol" rather than import from "../src/CommonUtils.sol". It avoids pollution and unexpected behaviours, for example when you are import two files that have similar variables names.

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.

2 participants