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 the TBTC token ownership update in deployment scripts for Goerli #488

Merged
merged 1 commit into from
Jan 20, 2023

Conversation

pdyraga
Copy link
Member

@pdyraga pdyraga commented Jan 20, 2023

Unit tests cover the path of the VendingMachine upgrade to TBTCVault. We transfer the ownership of TBTC token to the VendingMachine for Hardhat network used for unit tests to enable this path. For all other environments (e.g. local dev, Goerli), we want the TBTCVault to be the owner of TBTC token. This simulates the final 1.0 version mainnet state.

Unit tests cover the path of the VendingMachine upgrade to TBTCVault. We
transfer the ownership of TBTC token to the VendingMachine for Hardhat network
used for unit tests to enable this path. For all other environments (e.g. local
dev, Goerli), we want the TBTCVault to be the owner of TBTC token. This
simulates the final 1.0 version mainnet state.
Copy link
Contributor

@michalinacienciala michalinacienciala left a comment

Choose a reason for hiding this comment

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

Looks good to me, but I wouldn't rely on just my opinion. Let's have somebody else review on thi as well.

@lukasz-zimnoch lukasz-zimnoch merged commit 2b8297e into main Jan 20, 2023
@lukasz-zimnoch lukasz-zimnoch deleted the tbtc-token-owner branch January 20, 2023 11:47
r-czajkowski added a commit that referenced this pull request Jan 24, 2023
We want the TBTCVault to be the owner of the TBTC token and we do it in
earlier deployment step. The script `94_*` was a workaround and now it's
unnecessary. See #488.
@pdyraga pdyraga added this to the solidity/v1.0.0 milestone Jan 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⛓️ solidity Solidity contracts
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants