Skip to content

Commit

Permalink
feat: add named parameters to public mappings
Browse files Browse the repository at this point in the history
  • Loading branch information
ericlee42 committed Mar 5, 2024
1 parent ca062df commit bbb77ff
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion contracts/SequencerInfo.sol
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ contract SequencerInfo is OwnableUpgradeable, ISequencerInfo {
uint256 public totalSequencers;

// whitelist
mapping(address => bool) public whitelist;
mapping(address owner => bool yes) public whitelist;

// sequencerId => sequencer
mapping(uint256 seqId => Sequencer _seq) public sequencers;
Expand Down
4 changes: 2 additions & 2 deletions contracts/SequencerSet.sol
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ contract MetisSequencerSet is OwnableUpgradeable {
uint256 endBlock;
}

mapping(uint256 => Epoch) public epochs; // epoch number => epoch
mapping(uint256 number => Epoch epoch) public epochs; // epoch number => epoch

// current epoch id, starts from 0
// current epoch number, starts from 0
uint256 internal currentEpochId;

// event
Expand Down
2 changes: 1 addition & 1 deletion contracts/test/TestBridge.sol
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ contract TestBridge is IL1ERC20Bridge {
bytes _data
);

mapping(address => uint256) public l2Balances;
mapping(address addr => uint256 balance) public l2Balances;

function depositERC20ToByChainId(
uint256,
Expand Down

0 comments on commit bbb77ff

Please sign in to comment.