Update Prettier Solidity (#3898)
This commit is contained in:
@ -70,11 +70,7 @@ library EnumerableMap {
|
||||
* Returns true if the key was added to the map, that is if it was not
|
||||
* already present.
|
||||
*/
|
||||
function set(
|
||||
Bytes32ToBytes32Map storage map,
|
||||
bytes32 key,
|
||||
bytes32 value
|
||||
) internal returns (bool) {
|
||||
function set(Bytes32ToBytes32Map storage map, bytes32 key, bytes32 value) internal returns (bool) {
|
||||
map._values[key] = value;
|
||||
return map._keys.add(key);
|
||||
}
|
||||
@ -173,11 +169,7 @@ library EnumerableMap {
|
||||
* Returns true if the key was added to the map, that is if it was not
|
||||
* already present.
|
||||
*/
|
||||
function set(
|
||||
UintToUintMap storage map,
|
||||
uint256 key,
|
||||
uint256 value
|
||||
) internal returns (bool) {
|
||||
function set(UintToUintMap storage map, uint256 key, uint256 value) internal returns (bool) {
|
||||
return set(map._inner, bytes32(key), bytes32(value));
|
||||
}
|
||||
|
||||
@ -244,11 +236,7 @@ library EnumerableMap {
|
||||
* CAUTION: This function is deprecated because it requires allocating memory for the error
|
||||
* message unnecessarily. For custom revert reasons use {tryGet}.
|
||||
*/
|
||||
function get(
|
||||
UintToUintMap storage map,
|
||||
uint256 key,
|
||||
string memory errorMessage
|
||||
) internal view returns (uint256) {
|
||||
function get(UintToUintMap storage map, uint256 key, string memory errorMessage) internal view returns (uint256) {
|
||||
return uint256(get(map._inner, bytes32(key), errorMessage));
|
||||
}
|
||||
|
||||
@ -265,11 +253,7 @@ library EnumerableMap {
|
||||
* Returns true if the key was added to the map, that is if it was not
|
||||
* already present.
|
||||
*/
|
||||
function set(
|
||||
UintToAddressMap storage map,
|
||||
uint256 key,
|
||||
address value
|
||||
) internal returns (bool) {
|
||||
function set(UintToAddressMap storage map, uint256 key, address value) internal returns (bool) {
|
||||
return set(map._inner, bytes32(key), bytes32(uint256(uint160(value))));
|
||||
}
|
||||
|
||||
@ -357,11 +341,7 @@ library EnumerableMap {
|
||||
* Returns true if the key was added to the map, that is if it was not
|
||||
* already present.
|
||||
*/
|
||||
function set(
|
||||
AddressToUintMap storage map,
|
||||
address key,
|
||||
uint256 value
|
||||
) internal returns (bool) {
|
||||
function set(AddressToUintMap storage map, address key, uint256 value) internal returns (bool) {
|
||||
return set(map._inner, bytes32(uint256(uint160(key))), bytes32(value));
|
||||
}
|
||||
|
||||
@ -449,11 +429,7 @@ library EnumerableMap {
|
||||
* Returns true if the key was added to the map, that is if it was not
|
||||
* already present.
|
||||
*/
|
||||
function set(
|
||||
Bytes32ToUintMap storage map,
|
||||
bytes32 key,
|
||||
uint256 value
|
||||
) internal returns (bool) {
|
||||
function set(Bytes32ToUintMap storage map, bytes32 key, uint256 value) internal returns (bool) {
|
||||
return set(map._inner, key, bytes32(value));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user