diff --git a/solidity/contracts/integrator/TBTCDepositorProxy.sol b/solidity/contracts/integrator/TBTCDepositorProxy.sol index fc1a8c1c8..5a168d19e 100644 --- a/solidity/contracts/integrator/TBTCDepositorProxy.sol +++ b/solidity/contracts/integrator/TBTCDepositorProxy.sol @@ -181,9 +181,7 @@ abstract contract TBTCDepositorProxy { /// approximation. See documentation of the `calculateTbtcAmount` /// responsible for calculating this value for more details. // slither-disable-next-line dead-code - function _finalizeDeposit( - uint256 depositKey - ) + function _finalizeDeposit(uint256 depositKey) internal returns ( uint256 initialDepositAmount, diff --git a/solidity/test/integrator/TBTCDepositorProxy.test.ts b/solidity/test/integrator/TBTCDepositorProxy.test.ts index 8ed86e6a7..e40cde5d3 100644 --- a/solidity/test/integrator/TBTCDepositorProxy.test.ts +++ b/solidity/test/integrator/TBTCDepositorProxy.test.ts @@ -323,17 +323,17 @@ describe("TBTCDepositorProxy", () => { }) describe("_calculateTbtcAmount", () => { - before(async () => { - await createSnapshot() - - // Set the transaction max fee to 0.1 BTC. - await bridge.setDepositTxMaxFee(10000000) - }) + before(async () => { + await createSnapshot() + + // Set the transaction max fee to 0.1 BTC. + await bridge.setDepositTxMaxFee(10000000) + }) + + after(async () => { + await restoreSnapshot() + }) - after(async () => { - await restoreSnapshot() - }) - context("when all fees are non-zero", () => { it("should return the correct amount", async () => { const depositAmount = to1ePrecision(10, 8) // 10 BTC