Skip to content

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