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

Disable reinitializing token decimals #139

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 1 addition & 3 deletions zksync/contracts/bridge/L2StandardERC20.sol
Expand Up @@ -105,7 +105,6 @@ contract L2StandardERC20 is ERC20PermitUpgradeable, IL2StandardToken, ERC1967Upg
ERC20Getters calldata _availableGetters,
string memory _newName,
string memory _newSymbol,
uint8 _newDecimals,
uint8 _version
) external onlyNextVersion(_version) reinitializer(_version) {
// It is expected that this token is deployed as a beacon proxy, so we'll
Expand All @@ -115,10 +114,9 @@ contract L2StandardERC20 is ERC20PermitUpgradeable, IL2StandardToken, ERC1967Upg

__ERC20_init_unchained(_newName, _newSymbol);
__ERC20Permit_init(_newName);
decimals_ = _newDecimals;
availableGetters = _availableGetters;

emit BridgeInitialize(l1Address, _newName, _newSymbol, _newDecimals);
emit BridgeInitialize(l1Address, _newName, _newSymbol, _decimals);
}

modifier onlyBridge() {
Expand Down