Skip to content

Commit

Permalink
Small PR to Fix "Ethers" and "ETH" encoding (#762)
Browse files Browse the repository at this point in the history
Co-authored-by: Raid Ateir <ra@matterlabs.dev>
  • Loading branch information
Raid5594 and Raid Ateir authored Sep 3, 2024
1 parent 874bc6b commit 7f2c27a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions l1-contracts/contracts/bridge/L1SharedBridge.sol
Original file line number Diff line number Diff line change
Expand Up @@ -413,8 +413,8 @@ contract L1SharedBridge is IL1SharedBridge, ReentrancyGuard, Ownable2StepUpgrade
/// @dev Receives and parses (name, symbol, decimals) from the token contract
function _getERC20Getters(address _token) internal view returns (bytes memory) {
if (_token == ETH_TOKEN_ADDRESS) {
bytes memory name = bytes("Ether");
bytes memory symbol = bytes("ETH");
bytes memory name = abi.encode("Ether");
bytes memory symbol = abi.encode("ETH");
bytes memory decimals = abi.encode(uint8(18));
return abi.encode(name, symbol, decimals); // when depositing eth to a non-eth based chain it is an ERC20
}
Expand Down

0 comments on commit 7f2c27a

Please sign in to comment.