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

Added a script so we can grant the executor role to MultiCallDeploy #54

Merged
merged 5 commits into from
Feb 20, 2024

Conversation

shirren
Copy link
Collaborator

@shirren shirren commented Feb 19, 2024

Summary

Added a new script to execute on devnet to give the new Submitters addresses the executor role on the MultiCallDeploy contract.

const contractFactory: ContractFactory = await newContractFactory(wallets.getWallet(), contractName);

console.log(`[${network}] Confirm contract address ${multiCallDeployContractAddress} ...`);
const multiCallDeploy: Contract = await contractFactory.attach(multiCallDeployContractAddress);
Copy link
Contributor

Choose a reason for hiding this comment

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

Alternative which may be simpler:

 await hre.ethers.getContractAt("MultiCallDeploy", contractAddress);

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@Edwardjes do you mind if I keep the 2 step? The function newContractFactory is one I wrote that is also used by the deployment scripts, and for consistency i'd like they be all the same without a more pervasive change. Thoughts?

@shirren shirren merged commit 02fe406 into main Feb 20, 2024
8 of 9 checks passed
@shirren shirren deleted the feat/SMR-2372 branch February 20, 2024 01:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants