Skip to content

Commit

Permalink
trim whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanio committed Oct 10, 2023
1 parent 25bde9f commit 074f196
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 16 deletions.
1 change: 0 additions & 1 deletion test/create-order.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1006,7 +1006,6 @@ describeWithFixture(
expect(exchangeTransaction.data?.slice(-8)).to.eq(OPENSEA_DOMAIN_TAG);

const transaction = await exchange.transactionMethods.transact();

expect(transaction.data.slice(-8)).to.eq(OPENSEA_DOMAIN_TAG);

expect(await testErc721.ownerOf(nftId)).to.equal(
Expand Down
7 changes: 0 additions & 7 deletions test/fulfill-orders.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,17 +151,14 @@ describeWithFixture(
expect(actions.length).to.eq(1);

const action = actions[0];

expect(action.type).eq("exchange");

expect(
(await action.transactionMethods.buildTransaction()).data?.slice(
-8,
),
).to.eq(OPENSEA_DOMAIN_TAG);

const transaction = await action.transactionMethods.transact();

expect(transaction.data.slice(-8)).to.eq(OPENSEA_DOMAIN_TAG);

const owners = await Promise.all([
Expand Down Expand Up @@ -287,7 +284,6 @@ describeWithFixture(

const transaction =
await fulfillAction.transactionMethods.transact();

expect(transaction.data.slice(-8)).to.eq(OPENSEA_DOMAIN_TAG);

const owners = await Promise.all([
Expand Down Expand Up @@ -482,7 +478,6 @@ describeWithFixture(
).to.eq(OPENSEA_DOMAIN_TAG);

const transaction = await fulfillAction.transactionMethods.transact();

expect(transaction.data.slice(-8)).to.eq(OPENSEA_DOMAIN_TAG);

const owners = await Promise.all([
Expand Down Expand Up @@ -620,7 +615,6 @@ describeWithFixture(
).to.eq(OPENSEA_DOMAIN_TAG);

const transaction = await action.transactionMethods.transact();

expect(transaction.data.slice(-8)).to.eq(OPENSEA_DOMAIN_TAG);

const balances = await Promise.all([
Expand Down Expand Up @@ -737,7 +731,6 @@ describeWithFixture(

const transaction =
await fulfillAction.transactionMethods.transact();

expect(transaction.data.slice(-8)).to.eq(OPENSEA_DOMAIN_TAG);

const balances = await Promise.all([
Expand Down
9 changes: 1 addition & 8 deletions test/partial-fulfill.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,10 @@ describeWithFixture(
});

const transaction = await action.transactionMethods.transact();
expect(transaction.data.slice(-8)).to.eq(OPENSEA_DOMAIN_TAG);

const receipt = await transaction.wait();

expect(transaction.data.slice(-8)).to.eq(OPENSEA_DOMAIN_TAG);

const offererErc1155Balance = await testErc1155.balanceOf(
offerer.address,
nftId,
Expand Down Expand Up @@ -294,7 +293,6 @@ describeWithFixture(
});

const transaction = await fulfillAction.transactionMethods.transact();

expect(transaction.data.slice(-8)).to.eq(OPENSEA_DOMAIN_TAG);

const receipt = await transaction.wait();
Expand Down Expand Up @@ -422,7 +420,6 @@ describeWithFixture(
});

const transaction = await fulfillAction.transactionMethods.transact();

expect(transaction.data.slice(-8)).to.eq(OPENSEA_DOMAIN_TAG);

const receipt = await transaction.wait();
Expand Down Expand Up @@ -565,7 +562,6 @@ describeWithFixture(
});

const transaction = await fulfillAction.transactionMethods.transact();

expect(transaction.data.slice(-8)).to.eq(OPENSEA_DOMAIN_TAG);

const receipt = await transaction.wait();
Expand Down Expand Up @@ -675,7 +671,6 @@ describeWithFixture(
});

const transaction = await action.transactionMethods.transact();

expect(transaction.data.slice(-8)).to.eq(OPENSEA_DOMAIN_TAG);

const receipt = await transaction.wait();
Expand Down Expand Up @@ -791,7 +786,6 @@ describeWithFixture(
});

const transaction = await fulfillAction.transactionMethods.transact();

expect(transaction.data.slice(-8)).to.eq(OPENSEA_DOMAIN_TAG);

const receipt = await transaction.wait();
Expand Down Expand Up @@ -972,7 +966,6 @@ describeWithFixture(
});

const transaction = await fulfillAction.transactionMethods.transact();

expect(transaction.data.slice(-8)).to.eq(OPENSEA_DOMAIN_TAG);

const receipt = await transaction.wait();
Expand Down

0 comments on commit 074f196

Please sign in to comment.