From 0bcd55325ef4e24bd73bd2b1c1d46cabc8f1df82 Mon Sep 17 00:00:00 2001 From: Sir-Deon Date: Fri, 5 Apr 2024 11:53:13 +0100 Subject: [PATCH] worked on payment --- contracts/Treasury.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contracts/Treasury.sol b/contracts/Treasury.sol index da00f31..be209d3 100644 --- a/contracts/Treasury.sol +++ b/contracts/Treasury.sol @@ -111,12 +111,12 @@ contract Treasury is ITreasury, AccessControl, ReentrancyGuard { } // Control functuons - function pauseVault() external nonReentrant { + function pauseTreasury() external nonReentrant { require(hasRole(ADMIN_ROLE, msg.sender), "Not admin"); paused = true; } - function unPauseVault() external nonReentrant { + function unPauseTreasury() external nonReentrant { require(hasRole(ADMIN_ROLE, msg.sender), "Not admin"); paused = false; }