Skip to content

Commit

Permalink
fix tests after adding Pay event
Browse files Browse the repository at this point in the history
  • Loading branch information
miquelcabot committed Nov 4, 2023
1 parent 52d68ec commit d093100
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions test/SoulboundCreditScore.test.ts
Expand Up @@ -363,7 +363,7 @@ describe("Soulbound Credit Score", () => {
);
const mintReceipt = await mintTx.wait();

const tokenId = mintReceipt.events![0].args![1].toNumber();
const tokenId = mintReceipt.events![1].args![1].toNumber();

expect(await soulboundCreditScore.getIdentityId(tokenId)).to.equal(
identityId1
Expand Down Expand Up @@ -435,7 +435,7 @@ describe("Soulbound Credit Score", () => {
);
const mintReceipt = await mintTx.wait();

const tokenId = mintReceipt.events![0].args![1].toNumber();
const tokenId = mintReceipt.events![1].args![1].toNumber();

expect(await soulboundCreditScore.getIdentityId(tokenId)).to.equal(
identityId1
Expand Down Expand Up @@ -471,7 +471,7 @@ describe("Soulbound Credit Score", () => {
);
const mintReceipt = await mintTx.wait();

const tokenId = mintReceipt.events![0].args![1].toNumber();
const tokenId = mintReceipt.events![1].args![1].toNumber();

expect(await soulboundCreditScore.getIdentityId(tokenId)).to.equal(
identityId1
Expand Down Expand Up @@ -506,7 +506,7 @@ describe("Soulbound Credit Score", () => {
);
const mintReceipt = await mintTx.wait();

const tokenId = mintReceipt.events![1].args![1].toNumber();
const tokenId = mintReceipt.events![2].args![1].toNumber();

expect(await soulboundCreditScore.getIdentityId(tokenId)).to.equal(
identityId1
Expand All @@ -533,7 +533,7 @@ describe("Soulbound Credit Score", () => {
);
const mintReceipt = await mintTx.wait();

const tokenId = mintReceipt.events![2].args![1].toNumber();
const tokenId = mintReceipt.events![3].args![1].toNumber();

expect(await soulboundCreditScore.getIdentityId(tokenId)).to.equal(
identityId1
Expand Down Expand Up @@ -610,7 +610,7 @@ describe("Soulbound Credit Score", () => {
);
const mintReceipt = await mintTx.wait();

const tokenId = mintReceipt.events![0].args![1].toNumber();
const tokenId = mintReceipt.events![1].args![1].toNumber();

expect(await soulboundCreditScore.getIdentityId(tokenId)).to.equal(
identityId1
Expand Down Expand Up @@ -675,7 +675,7 @@ describe("Soulbound Credit Score", () => {
);
const mintReceipt = await mintTx.wait();

const tokenId = mintReceipt.events![0].args![1].toNumber();
const tokenId = mintReceipt.events![1].args![1].toNumber();

expect(await soulboundCreditScore.getIdentityId(tokenId)).to.equal(
identityId1
Expand Down Expand Up @@ -740,7 +740,7 @@ describe("Soulbound Credit Score", () => {
);
const mintReceipt = await mintTx.wait();

const tokenId = mintReceipt.events![0].args![1].toNumber();
const tokenId = mintReceipt.events![1].args![1].toNumber();

expect(await soulboundCreditScore.getIdentityId(tokenId)).to.equal(
identityId1
Expand Down Expand Up @@ -795,7 +795,7 @@ describe("Soulbound Credit Score", () => {
);
const mintReceipt = await mintTx.wait();

const tokenId = mintReceipt.events![2].args![1].toNumber();
const tokenId = mintReceipt.events![3].args![1].toNumber();

expect(await soulboundCreditScore.getIdentityId(tokenId)).to.equal(
identityId1
Expand Down Expand Up @@ -850,7 +850,7 @@ describe("Soulbound Credit Score", () => {
);
const mintReceipt = await mintTx.wait();

const tokenId = mintReceipt.events![2].args![1].toNumber();
const tokenId = mintReceipt.events![3].args![1].toNumber();

expect(await soulboundCreditScore.getIdentityId(tokenId)).to.equal(
identityId1
Expand Down Expand Up @@ -905,7 +905,7 @@ describe("Soulbound Credit Score", () => {
);
const mintReceipt = await mintTx.wait();

const tokenId = mintReceipt.events![2].args![1].toNumber();
const tokenId = mintReceipt.events![3].args![1].toNumber();

expect(await soulboundCreditScore.getIdentityId(tokenId)).to.equal(
identityId1
Expand Down

0 comments on commit d093100

Please sign in to comment.