File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed
Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change 1+ // SPDX-License-Identifier: MIT
2+
3+ pragma solidity ^ 0.8.8 ;
4+
5+ import { EnumerableMap } from './EnumerableMap.sol ' ;
6+
7+ contract EnumerableMapUintToAddressMock {
8+ using EnumerableMap for EnumerableMap.UintToAddressMap;
9+
10+ EnumerableMap.UintToAddressMap internal map;
11+
12+ function at (uint256 index ) external view returns (uint256 , address ) {
13+ return map.at (index);
14+ }
15+
16+ function contains (uint256 key ) external view returns (bool ) {
17+ return map.contains (key);
18+ }
19+
20+ function length () external view returns (uint256 ) {
21+ return map.length ();
22+ }
23+
24+ function get (uint256 key ) external view returns (address ) {
25+ return map.get (key);
26+ }
27+
28+ function set (uint256 key , address value ) external returns (bool ) {
29+ return map.set (key, value);
30+ }
31+
32+ function remove (uint256 key ) external returns (bool ) {
33+ return map.remove (key);
34+ }
35+ }
You can’t perform that action at this time.
0 commit comments