Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

Commit

Permalink
chore: fix the tests for using receipt
Browse files Browse the repository at this point in the history
Signed-off-by: Jawad Tariq <[email protected]>
  • Loading branch information
JDawg287 committed Aug 4, 2023
1 parent a1d4194 commit db03527
Show file tree
Hide file tree
Showing 6 changed files with 111 additions and 214 deletions.
10 changes: 5 additions & 5 deletions test/topos-core/ToposCore.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ describe('ToposCore', () => {
cc.PREV_CERT_ID_0,
cc.SOURCE_SUBNET_ID_1,
cc.STATE_ROOT_MAX,
cc.TX_ROOT_MAX,
cc.RECEIPT_ROOT_MAX,
[cc.TARGET_SUBNET_ID_4, cc.TARGET_SUBNET_ID_5],
cc.VERIFIER,
cc.CERT_ID_1,
Expand Down Expand Up @@ -68,7 +68,7 @@ describe('ToposCore', () => {
cc.PREV_CERT_ID_0,
checkpoint[2].toString(),
cc.STATE_ROOT_MAX,
cc.TX_ROOT_MAX,
cc.RECEIPT_ROOT_MAX,
[cc.TARGET_SUBNET_ID_4],
cc.VERIFIER,
checkpoint[0].toString(),
Expand Down Expand Up @@ -102,7 +102,7 @@ describe('ToposCore', () => {
cc.PREV_CERT_ID_0,
checkpoint[2].toString(),
cc.STATE_ROOT_MAX,
cc.TX_ROOT_MAX,
cc.RECEIPT_ROOT_MAX,
[cc.TARGET_SUBNET_ID_4],
cc.VERIFIER,
checkpoint[0].toString(),
Expand All @@ -128,7 +128,7 @@ describe('ToposCore', () => {
cc.PREV_CERT_ID_0,
updatedTestCheckpoint[2].toString(),
cc.STATE_ROOT_MAX,
cc.TX_ROOT_MAX,
cc.RECEIPT_ROOT_MAX,
[cc.TARGET_SUBNET_ID_4],
cc.VERIFIER,
updatedTestCheckpoint[0].toString(),
Expand Down Expand Up @@ -158,7 +158,7 @@ describe('ToposCore', () => {
const tx = await toposCore.pushCertificate(defaultCert, cc.CERT_POS_1)
await expect(tx)
.to.emit(toposCore, 'CertStored')
.withArgs(cc.CERT_ID_1, cc.TX_ROOT_MAX)
.withArgs(cc.CERT_ID_1, cc.RECEIPT_ROOT_MAX)
})
})

Expand Down
Loading

0 comments on commit db03527

Please sign in to comment.