Use named arguments in mapping types (#4433)
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
This commit is contained in:
@ -74,7 +74,7 @@ error EnumerableMapNonexistentKey(bytes32 key);
|
||||
struct Bytes32ToBytes32Map {
|
||||
// Storage of keys
|
||||
EnumerableSet.Bytes32Set _keys;
|
||||
mapping(bytes32 => bytes32) _values;
|
||||
mapping(bytes32 key => bytes32) _values;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -63,7 +63,7 @@ struct Set {
|
||||
bytes32[] _values;
|
||||
// Position of the value in the \`values\` array, plus 1 because index 0
|
||||
// means a value is not in the set.
|
||||
mapping(bytes32 => uint256) _indexes;
|
||||
mapping(bytes32 value => uint256) _indexes;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user