Commit 85a756a9 authored by Mark Tyneway's avatar Mark Tyneway Committed by GitHub

Merge pull request #1273 from ethereum-optimism/fix/pete-inheritance

Make it possible to override mint & burn methods in L2StandardERC20
parents 23103d90 8feac092
---
'@eth-optimism/contracts': patch
---
Make it possible to override mint & burn methods in L2StandardERC20
...@@ -39,13 +39,13 @@ contract L2StandardERC20 is IL2StandardERC20, ERC20 { ...@@ -39,13 +39,13 @@ contract L2StandardERC20 is IL2StandardERC20, ERC20 {
return _interfaceId == firstSupportedInterface || _interfaceId == secondSupportedInterface; return _interfaceId == firstSupportedInterface || _interfaceId == secondSupportedInterface;
} }
function mint(address _to, uint256 _amount) public override onlyL2Bridge { function mint(address _to, uint256 _amount) public virtual override onlyL2Bridge {
_mint(_to, _amount); _mint(_to, _amount);
emit Mint(_to, _amount); emit Mint(_to, _amount);
} }
function burn(address _from, uint256 _amount) public override onlyL2Bridge { function burn(address _from, uint256 _amount) public virtual override onlyL2Bridge {
_burn(_from, _amount); _burn(_from, _amount);
emit Burn(_from, _amount); emit Burn(_from, _amount);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment