Skip to content

Commit 4f3018c

Browse files
committed
test: regression test for new versions with zero owner tax
1 parent 26dda5c commit 4f3018c

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

test/gns.test.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,11 @@ describe('L1GNS', () => {
420420
await publishNewVersion(me, subgraph.id, newSubgraph1, gns, curation)
421421
})
422422

423+
it('should publish a new version on an existing subgraph when owner tax is zero', async function () {
424+
await gns.connect(governor.signer).setOwnerTaxPercentage(0)
425+
await publishNewVersion(me, subgraph.id, newSubgraph1, gns, curation)
426+
})
427+
423428
it('should publish a new version on an existing subgraph with no current signal', async function () {
424429
const emptySignalSubgraph = await publishNewSubgraph(me, buildSubgraph(), gns)
425430
await publishNewVersion(me, emptySignalSubgraph.id, newSubgraph1, gns, curation)

test/l2/l2GNS.test.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,11 @@ describe('L2GNS', () => {
165165
await publishNewVersion(me, subgraph.id, newSubgraph1, gns, curation)
166166
})
167167

168+
it('should publish a new version on an existing subgraph when owner tax is zero', async function () {
169+
await gns.connect(governor.signer).setOwnerTaxPercentage(0)
170+
await publishNewVersion(me, subgraph.id, newSubgraph1, gns, curation)
171+
})
172+
168173
it('should publish a new version on an existing subgraph with no current signal', async function () {
169174
const emptySignalSubgraph = await publishNewSubgraph(me, buildSubgraph(), gns)
170175
await publishNewVersion(me, emptySignalSubgraph.id, newSubgraph1, gns, curation)

0 commit comments

Comments
 (0)