From 38b022088f0b15f4bfa426f2625404897652fe52 Mon Sep 17 00:00:00 2001 From: Mikhail Melnik Date: Thu, 24 Nov 2022 12:30:35 +0400 Subject: [PATCH] fix --- contracts/libs/ReentrancyGuard.sol | 1 - test/ERC20Pods.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/contracts/libs/ReentrancyGuard.sol b/contracts/libs/ReentrancyGuard.sol index 0cf7ffd..ad378ff 100644 --- a/contracts/libs/ReentrancyGuard.sol +++ b/contracts/libs/ReentrancyGuard.sol @@ -32,7 +32,6 @@ library ReentrancyGuardLib { contract ReentrancyGuardExt { using ReentrancyGuardLib for ReentrancyGuardLib.Data; - error AccessDenied(); modifier nonReentrant(ReentrancyGuardLib.Data storage self) { self.enter(); diff --git a/test/ERC20Pods.js b/test/ERC20Pods.js index 4fcf8aa..2800db5 100644 --- a/test/ERC20Pods.js +++ b/test/ERC20Pods.js @@ -45,7 +45,7 @@ describe('ERC20Pods', function () { await wrongPod.setReturnGasBomb(true); const tx = await erc20Pods.addPod(wrongPod.address); const receipt = await tx.wait(); - expect(receipt.gasUsed).to.be.lt(272123); // 272123 with solidity instead of assembly + expect(receipt.gasUsed).to.be.lt(274168); expect(await erc20Pods.pods(wallet1.address)).to.have.deep.equals([wrongPod.address]); }); });