Skip to content

Commit 066c23f

Browse files
committed
fix: format issues
1 parent 1ed7bd0 commit 066c23f

File tree

2 files changed

+17
-5
lines changed

2 files changed

+17
-5
lines changed

src/PegInContract.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,8 @@ contract PegInContract is
266266
quote.liquidityProviderBtcAddress
267267
)
268268
);
269-
bytes1 OP_DROP = 0x75;
270-
bytes1 OP_PUSHBYTES_32 = 0x20;
269+
bytes1 OP_DROP = 0x75; // solhint-disable-line
270+
bytes1 OP_PUSHBYTES_32 = 0x20; // solhint-disable-line
271271
bytes memory flyoverRedeemScript = bytes.concat(
272272
OP_PUSHBYTES_32,
273273
derivationValue,

test/legacy/PegIn.t.sol

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1542,7 +1542,11 @@ contract PegInTest is Test {
15421542
hex"75",
15431543
bridgeMock.getActivePowpegRedeemScript()
15441544
);
1545-
bytes memory segwitScript1 = bytes.concat(OpCodes.OP_0, hex"20", sha256(flyoverRedeemScript1));
1545+
bytes memory segwitScript1 = bytes.concat(
1546+
OpCodes.OP_0,
1547+
hex"20",
1548+
sha256(flyoverRedeemScript1)
1549+
);
15461550

15471551
// Calculate P2SH address from redeem script using FFI
15481552
bytes memory expectedDepositAddr1 = _getP2SHAddressFromScript(
@@ -1599,7 +1603,11 @@ contract PegInTest is Test {
15991603
hex"75",
16001604
bridgeMock.getActivePowpegRedeemScript()
16011605
);
1602-
bytes memory segwitScript2 = bytes.concat(OpCodes.OP_0, hex"20", sha256(flyoverRedeemScript2));
1606+
bytes memory segwitScript2 = bytes.concat(
1607+
OpCodes.OP_0,
1608+
hex"20",
1609+
sha256(flyoverRedeemScript2)
1610+
);
16031611
bytes memory expectedDepositAddr2 = _getP2SHAddressFromScript(
16041612
segwitScript2,
16051613
false
@@ -1654,7 +1662,11 @@ contract PegInTest is Test {
16541662
hex"75",
16551663
bridgeMock.getActivePowpegRedeemScript()
16561664
);
1657-
bytes memory segwitScript3 = bytes.concat(OpCodes.OP_0, hex"20", sha256(flyoverRedeemScript3));
1665+
bytes memory segwitScript3 = bytes.concat(
1666+
OpCodes.OP_0,
1667+
hex"20",
1668+
sha256(flyoverRedeemScript3)
1669+
);
16581670
bytes memory expectedDepositAddr3 = _getP2SHAddressFromScript(
16591671
segwitScript3,
16601672
false

0 commit comments

Comments
 (0)