Skip to content

Commit

Permalink
fix: set-status-pending fn signature
Browse files Browse the repository at this point in the history
  • Loading branch information
scolear committed Jul 15, 2024
1 parent 24f144c commit 13f76b6
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 18 deletions.
7 changes: 1 addition & 6 deletions contracts/DLCManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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]];
Expand Down
4 changes: 2 additions & 2 deletions test/DLCBTC.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ describe('DLCBTC', function () {
{
uuid: _uuid,
btcTxId: mockBTCTxId,
functionString: 'set-status-redeem-pending',
functionString: 'set-status-pending',
newLockedAmount: 0,
},
attestors,
Expand Down Expand Up @@ -193,7 +193,7 @@ describe('DLCBTC', function () {
{
uuid: _uuid,
btcTxId: mockBTCTxId,
functionString: 'set-status-redeem-pending',
functionString: 'set-status-pending',
newLockedAmount: 0,
},
attestors,
Expand Down
20 changes: 10 additions & 10 deletions test/DLCManager.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ describe('DLCManager', () => {
{
uuid,
btcTxId,
functionString: 'set-status-redeem-pending',
functionString: 'set-status-pending',
newLockedAmount: 0,
},
attestors,
Expand Down Expand Up @@ -311,7 +311,7 @@ describe('DLCManager', () => {
{
uuid,
btcTxId,
functionString: 'set-status-redeem-pending',
functionString: 'set-status-pending',
newLockedAmount: 0,
},
attestors,
Expand Down Expand Up @@ -373,7 +373,7 @@ describe('DLCManager', () => {
{
uuid,
btcTxId,
functionString: 'set-status-redeem-pending',
functionString: 'set-status-pending',
newLockedAmount: 0,
},
attestors,
Expand Down Expand Up @@ -705,7 +705,7 @@ describe('DLCManager', () => {
{
uuid,
btcTxId,
functionString: 'set-status-redeem-pending',
functionString: 'set-status-pending',
newLockedAmount: 0,
},
attestors,
Expand Down Expand Up @@ -762,7 +762,7 @@ describe('DLCManager', () => {
{
uuid,
btcTxId,
functionString: 'set-status-redeem-pending',
functionString: 'set-status-pending',
newLockedAmount: 0,
},
attestors,
Expand Down Expand Up @@ -812,7 +812,7 @@ describe('DLCManager', () => {
{
uuid,
btcTxId,
functionString: 'set-status-redeem-pending',
functionString: 'set-status-pending',
newLockedAmount: 0,
},
attestors,
Expand Down Expand Up @@ -855,7 +855,7 @@ describe('DLCManager', () => {
{
uuid,
btcTxId,
functionString: 'set-status-redeem-pending',
functionString: 'set-status-pending',
newLockedAmount: 0,
},
attestors,
Expand Down Expand Up @@ -906,7 +906,7 @@ describe('DLCManager', () => {
{
uuid,
btcTxId,
functionString: 'set-status-redeem-pending',
functionString: 'set-status-pending',
newLockedAmount: 0,
},
attestors,
Expand Down Expand Up @@ -945,7 +945,7 @@ describe('DLCManager', () => {
{
uuid,
btcTxId,
functionString: 'set-status-redeem-pending',
functionString: 'set-status-pending',
newLockedAmount: 0,
},
attestors,
Expand Down Expand Up @@ -992,7 +992,7 @@ describe('DLCManager', () => {
{
uuid,
btcTxId,
functionString: 'set-status-redeem-pending',
functionString: 'set-status-pending',
newLockedAmount: 0,
},
attestors,
Expand Down

0 comments on commit 13f76b6

Please sign in to comment.