diff --git a/lib/starport b/lib/starport index 8ac5598..5731b5f 160000 --- a/lib/starport +++ b/lib/starport @@ -1 +1 @@ -Subproject commit 8ac5598f8ad07e79c110119b7896225b4301511b +Subproject commit 5731b5f2fa3026648666bd7cb89f7db2a1d7b372 diff --git a/test/TestAstariaV1Loan.sol b/test/TestAstariaV1Loan.sol index d990405..69c714a 100644 --- a/test/TestAstariaV1Loan.sol +++ b/test/TestAstariaV1Loan.sol @@ -380,9 +380,7 @@ contract TestAstariaV1Loan is AstariaV1Test { // warp past the end of the recall window vm.warp(block.timestamp + details.recallWindow + 1); - OfferItem[] memory repayOffering = new OfferItem[]( - loan.collateral.length - ); + OfferItem[] memory repayOffering = new OfferItem[](loan.collateral.length); uint256 i = 0; for (; i < loan.collateral.length;) { repayOffering[i] = OfferItem({ @@ -403,9 +401,7 @@ contract TestAstariaV1Loan is AstariaV1Test { settlementConsideration.length, 0, "Settlement consideration for a recalling Lender should be zero" ); assertEq(restricted, lender.addr, "SettlementConsideration should be restricted to the lender"); - ConsiderationItem[] memory consider = new ConsiderationItem[]( - settlementConsideration.length - ); + ConsiderationItem[] memory consider = new ConsiderationItem[](settlementConsideration.length); i = 0; for (; i < settlementConsideration.length;) { consider[i].token = settlementConsideration[i].token; @@ -493,9 +489,7 @@ contract TestAstariaV1Loan is AstariaV1Test { // warp past the end of the recall window vm.warp(block.timestamp + details.recallWindow + 1); elapsedTime += (details.recallWindow + 1); - OfferItem[] memory repayOffering = new OfferItem[]( - loan.collateral.length - ); + OfferItem[] memory repayOffering = new OfferItem[](loan.collateral.length); uint256 i = 0; for (; i < loan.collateral.length;) { repayOffering[i] = OfferItem({ @@ -541,9 +535,7 @@ contract TestAstariaV1Loan is AstariaV1Test { activeLoan, 0, activeLoan.terms.status, address(this) ); } - ConsiderationItem[] memory consider = new ConsiderationItem[]( - settlementConsideration.length - ); + ConsiderationItem[] memory consider = new ConsiderationItem[](settlementConsideration.length); i = 0; for (; i < settlementConsideration.length;) { consider[i].token = settlementConsideration[i].token;