Skip to content

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 🤔


/// @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
@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.

3 participants