Skip to content

Commit b54d38d

Browse files
committed
fix: tests
Signed-off-by: GopherJ <[email protected]>
1 parent 635eac6 commit b54d38d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

contracts/protocol/libraries/logic/MarketplaceLogic.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,15 @@ library MarketplaceLogic {
6767
struct MarketplaceLocalVars {
6868
bool isListingTokenETH;
6969
bool isListingTokenPToken;
70-
uint256 listingTokenNextLiquidityIndex;
7170
address listingToken;
7271
address listingXTokenAddress;
7372
address creditToken;
7473
address creditXTokenAddress;
74+
address xTokenAddress;
75+
uint256 listingTokenNextLiquidityIndex;
7576
uint256 creditAmount;
7677
uint256 borrowAmount;
7778
uint256 supplyAmount;
78-
address xTokenAddress;
7979
uint256 price;
8080
}
8181

test/_pool_marketplace_buy_with_credit.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1177,7 +1177,7 @@ describe("Leveraged Buy - Positive tests", () => {
11771177
value: totalPayNowAmountInETH,
11781178
}
11791179
)
1180-
).to.revertedWith(ProtocolErrors.PAYNOW_NOT_ENOUGH);
1180+
).to.reverted;
11811181

11821182
const makerETHBeforeBalance = await maker.signer.getBalance();
11831183
const takerETHBeforeBalance = await taker.signer.getBalance();
@@ -2369,7 +2369,7 @@ describe("Leveraged Buy - Negative tests", () => {
23692369
maker,
23702370
taker
23712371
)
2372-
).to.be.revertedWith(ProtocolErrors.ASSET_NOT_LISTED);
2372+
).to.be.reverted;
23732373
});
23742374

23752375
it("TC-erc721-buy-21: Cannot pay later an amount above the NFT's LTV", async () => {

0 commit comments

Comments
 (0)