From 0e800230ec2e51fa0e65a55f911636ee57d68afc Mon Sep 17 00:00:00 2001 From: Ryan <80392855+RayXpub@users.noreply.github.com> Date: Mon, 30 Sep 2024 22:33:14 +0400 Subject: [PATCH] chore: lint and update gas snapshot --- contracts/gas-snapshots/shared.gas-snapshot | 6 ++++++ contracts/src/v0.8/shared/enumerable/EnumerableBytesSet.sol | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/contracts/gas-snapshots/shared.gas-snapshot b/contracts/gas-snapshots/shared.gas-snapshot index dda850089c7..ecaccbcb568 100644 --- a/contracts/gas-snapshots/shared.gas-snapshot +++ b/contracts/gas-snapshots/shared.gas-snapshot @@ -51,6 +51,12 @@ CallWithExactGas__callWithExactGasSafeReturnData:test_NoContractReverts() (gas: CallWithExactGas__callWithExactGasSafeReturnData:test_NoGasForCallExactCheckReverts() (gas: 16139) CallWithExactGas__callWithExactGasSafeReturnData:test_NotEnoughGasForCallReverts() (gas: 16569) CallWithExactGas__callWithExactGasSafeReturnData:test_callWithExactGasSafeReturnData_ThrowOOGError_Revert() (gas: 36708) +EnumerableBytesSetTest_Add:test_add_AlreadyExistingValue() (gas: 78092) +EnumerableBytesSetTest_Add:test_add_MultipleUniqueValues() (gas: 128315) +EnumerableBytesSetTest_Add:test_add_SingleValue() (gas: 78017) +EnumerableBytesSet_Remove:test_remove_MultipleExistingValues() (gas: 9186) +EnumerableBytesSet_Remove:test_remove_SingleExistingValue() (gas: 28176) +EnumerableBytesSet_Remove:test_remove_SingleNonExistingValue() (gas: 22406) EnumerableMapAddresses_at:testAtSuccess() (gas: 95086) EnumerableMapAddresses_at:testBytes32AtSuccess() (gas: 94877) EnumerableMapAddresses_at:testBytesAtSuccess() (gas: 96564) diff --git a/contracts/src/v0.8/shared/enumerable/EnumerableBytesSet.sol b/contracts/src/v0.8/shared/enumerable/EnumerableBytesSet.sol index 36f1102695b..089dae3fb80 100644 --- a/contracts/src/v0.8/shared/enumerable/EnumerableBytesSet.sol +++ b/contracts/src/v0.8/shared/enumerable/EnumerableBytesSet.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -/* solhint-disable-next-line chainlink-solidity/prefix-internal-functions-with-underscore */ +/* solhint-disable chainlink-solidity/prefix-internal-functions-with-underscore */ pragma solidity ^0.8.0; /// Library for managing sets of bytes. Reuses OpenZeppelin's EnumerableSet library logic but for bytes.