From 13f76b68ecb1ff348ef296b9b3bf2f738f4be80b Mon Sep 17 00:00:00 2001 From: scolear Date: Mon, 15 Jul 2024 16:07:10 +0200 Subject: [PATCH] fix: set-status-pending fn signature --- contracts/DLCManager.sol | 7 +------ test/DLCBTC.test.js | 4 ++-- test/DLCManager.test.js | 20 ++++++++++---------- 3 files changed, 13 insertions(+), 18 deletions(-) diff --git a/contracts/DLCManager.sol b/contracts/DLCManager.sol index a8ff004..5411679 100644 --- a/contracts/DLCManager.sol +++ b/contracts/DLCManager.sol @@ -390,12 +390,7 @@ contract DLCManager is uint256 newValueLocked ) external whenNotPaused onlyApprovedSigners { _attestorMultisigIsValid( - abi.encode( - uuid, - wdTxId, - "set-status-redeem-pending", - newValueLocked - ), + abi.encode(uuid, wdTxId, "set-status-pending", newValueLocked), signatures ); DLCLink.DLC storage dlc = dlcs[dlcIDsByUUID[uuid]]; diff --git a/test/DLCBTC.test.js b/test/DLCBTC.test.js index d985e28..a2c7107 100644 --- a/test/DLCBTC.test.js +++ b/test/DLCBTC.test.js @@ -123,7 +123,7 @@ describe('DLCBTC', function () { { uuid: _uuid, btcTxId: mockBTCTxId, - functionString: 'set-status-redeem-pending', + functionString: 'set-status-pending', newLockedAmount: 0, }, attestors, @@ -193,7 +193,7 @@ describe('DLCBTC', function () { { uuid: _uuid, btcTxId: mockBTCTxId, - functionString: 'set-status-redeem-pending', + functionString: 'set-status-pending', newLockedAmount: 0, }, attestors, diff --git a/test/DLCManager.test.js b/test/DLCManager.test.js index 8f65cc7..4e15cff 100644 --- a/test/DLCManager.test.js +++ b/test/DLCManager.test.js @@ -258,7 +258,7 @@ describe('DLCManager', () => { { uuid, btcTxId, - functionString: 'set-status-redeem-pending', + functionString: 'set-status-pending', newLockedAmount: 0, }, attestors, @@ -311,7 +311,7 @@ describe('DLCManager', () => { { uuid, btcTxId, - functionString: 'set-status-redeem-pending', + functionString: 'set-status-pending', newLockedAmount: 0, }, attestors, @@ -373,7 +373,7 @@ describe('DLCManager', () => { { uuid, btcTxId, - functionString: 'set-status-redeem-pending', + functionString: 'set-status-pending', newLockedAmount: 0, }, attestors, @@ -705,7 +705,7 @@ describe('DLCManager', () => { { uuid, btcTxId, - functionString: 'set-status-redeem-pending', + functionString: 'set-status-pending', newLockedAmount: 0, }, attestors, @@ -762,7 +762,7 @@ describe('DLCManager', () => { { uuid, btcTxId, - functionString: 'set-status-redeem-pending', + functionString: 'set-status-pending', newLockedAmount: 0, }, attestors, @@ -812,7 +812,7 @@ describe('DLCManager', () => { { uuid, btcTxId, - functionString: 'set-status-redeem-pending', + functionString: 'set-status-pending', newLockedAmount: 0, }, attestors, @@ -855,7 +855,7 @@ describe('DLCManager', () => { { uuid, btcTxId, - functionString: 'set-status-redeem-pending', + functionString: 'set-status-pending', newLockedAmount: 0, }, attestors, @@ -906,7 +906,7 @@ describe('DLCManager', () => { { uuid, btcTxId, - functionString: 'set-status-redeem-pending', + functionString: 'set-status-pending', newLockedAmount: 0, }, attestors, @@ -945,7 +945,7 @@ describe('DLCManager', () => { { uuid, btcTxId, - functionString: 'set-status-redeem-pending', + functionString: 'set-status-pending', newLockedAmount: 0, }, attestors, @@ -992,7 +992,7 @@ describe('DLCManager', () => { { uuid, btcTxId, - functionString: 'set-status-redeem-pending', + functionString: 'set-status-pending', newLockedAmount: 0, }, attestors,