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

🐛 fix risk steward import issue #21

Merged
merged 2 commits into from
Dec 3, 2024

Conversation

MartinGbz
Copy link
Contributor

For the Base chain contract generation, the generator use the contract RiskStewardsBase (which is the contract on which all networks inherit from) instead of RiskStewardsBaseChain (which is the base network contract).
To avoid this edge case, I set a condition to rename correctly the RiskSteward contract on Base network.

*/
contract ${contractName} is ${`RiskStewards${chain}`
} {
contract ${contractName} is ${`RiskStewards${riskStewardChain}`} {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
contract ${contractName} is ${`RiskStewards${riskStewardChain}`} {
contract ${contractName} is ${`RiskStewards${chain === 'Base' ? 'BaseChain' : chain}`} {

I would put the condition here directly instead of declaring a new constant

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Pushed a fix (cause with this suggestion I needed to also remove the riskStewardChain const

@brotherlymite brotherlymite merged commit a60518c into aave-dao:main Dec 3, 2024
2 of 3 checks passed
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