Skip to content

feat: ERC20 enters #50

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

Merged
merged 5 commits into from
Jul 1, 2024
Merged

feat: ERC20 enters #50

merged 5 commits into from
Jul 1, 2024

Conversation

anna-carroll
Copy link
Contributor

  • AddedenterToken function + event EnterToken(address token) event
  • Added configureEnter event + canEnter var

@anna-carroll anna-carroll self-assigned this Jun 30, 2024
@anna-carroll anna-carroll changed the title Anna/enter token feat: ERC20 enters Jun 30, 2024
@anna-carroll
Copy link
Contributor Author

anna-carroll commented Jun 30, 2024

motivation for this commit deb8511 :

i wanted to not touch the token admin key(s) whenever possible, so it seemed nice to be able to configure the contract at deploy time without having to activate that multisig

it would be cleaner to configure the contract via scripts as we do with sequencer keys, but this seemed on balance better 🤔

@@ -114,15 +153,27 @@ contract Passage {
emit Transact(rollupChainId, msg.sender, to, data, value, gas, maxFeePerGas);
}

/// @notice Alow/Disallow a given ERC20 token to enter the rollup.
function configureEnter(address token, bool _canEnter) external {
if (msg.sender != tokenAdmin) revert OnlyTokenAdmin();
Copy link
Member

Choose a reason for hiding this comment

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

followup work:

bump solidity to 0.8.26 so we can use require(_, Error) instead of if-revert

Copy link
Member

Choose a reason for hiding this comment

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

@anna-carroll anna-carroll merged commit 80f8b6f into main Jul 1, 2024
1 check passed
@prestwich prestwich deleted the anna/enter-token branch September 11, 2024 17:21
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