Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove contracts dir #101

Merged
merged 2 commits into from
Nov 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion contracts/hello-zkvm
Submodule hello-zkvm deleted from 8a783d
16 changes: 6 additions & 10 deletions src/swap/Btc_Marketplace.sol
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ contract BtcMarketPlace {
}

BtcSellOrder[] memory ret = new BtcSellOrder[](numOpenOrders);
uint256[] memory identifiers = new uint[](numOpenOrders);
uint256[] memory identifiers = new uint256[](numOpenOrders);
uint256 numPushed = 0;
for (uint256 i = 0; i < nextOrderId; i++) {
if (btcSellOrders[i].requester != address(0x0)) {
Expand All @@ -318,10 +318,8 @@ contract BtcMarketPlace {
}
}

AcceptedBtcSellOrder[] memory ret = new AcceptedBtcSellOrder[](
numOpenOrders
);
uint256[] memory identifiers = new uint[](numOpenOrders);
AcceptedBtcSellOrder[] memory ret = new AcceptedBtcSellOrder[](numOpenOrders);
uint256[] memory identifiers = new uint256[](numOpenOrders);
uint256 numPushed = 0;
for (uint256 i = 0; i < nextOrderId; i++) {
if (acceptedBtcSellOrders[i].amountBtc > 0) {
Expand All @@ -342,7 +340,7 @@ contract BtcMarketPlace {
}

BtcBuyOrder[] memory ret = new BtcBuyOrder[](numOpenOrders);
uint256[] memory identifiers = new uint[](numOpenOrders);
uint256[] memory identifiers = new uint256[](numOpenOrders);
uint256 numPushed = 0;
for (uint256 i = 0; i < nextOrderId; i++) {
if (btcBuyOrders[i].requester != address(0x0)) {
Expand All @@ -362,10 +360,8 @@ contract BtcMarketPlace {
}
}

AcceptedBtcBuyOrder[] memory ret = new AcceptedBtcBuyOrder[](
numOpenOrders
);
uint256[] memory identifiers = new uint[](numOpenOrders);
AcceptedBtcBuyOrder[] memory ret = new AcceptedBtcBuyOrder[](numOpenOrders);
uint256[] memory identifiers = new uint256[](numOpenOrders);
uint256 numPushed = 0;
for (uint256 i = 0; i < nextOrderId; i++) {
if (acceptedBtcBuyOrders[i].amountBtc > 0) {
Expand Down