Skip to content

Commit

Permalink
fix: block.number <-> blockNum not coordinated
Browse files Browse the repository at this point in the history
  • Loading branch information
juanmardefago committed Apr 15, 2024
1 parent 086871b commit 0d4b294
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/curation.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ createMockedFunction(controllerAddress, 'getGovernor', 'getGovernor():(address)'
// L2 graph network init EpochManager call
createMockedFunction(graphAddress, 'blockNum', 'blockNum():(uint256)')
.withArgs([])
.returns([ethereum.Value.fromI32(0)])
.returns([ethereum.Value.fromI32(1)])

describe('Signalled', () => {
beforeAll(() => {
Expand Down
2 changes: 1 addition & 1 deletion tests/gns.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ createMockedFunction(controllerAddress, 'getGovernor', 'getGovernor():(address)'
// L2 graph network init EpochManager call
createMockedFunction(graphAddress, 'blockNum', 'blockNum():(uint256)')
.withArgs([])
.returns([ethereum.Value.fromI32(0)])
.returns([ethereum.Value.fromI32(1)])

// CONSTANTS
const blockNumber = BigInt.fromI32(1)
Expand Down
2 changes: 1 addition & 1 deletion tests/helpers.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ createMockedFunction(controllerAddress, 'getGovernor', 'getGovernor():(address)'
// L2 graph network init EpochManager call
createMockedFunction(graphAddress, 'blockNum', 'blockNum():(uint256)')
.withArgs([])
.returns([ethereum.Value.fromI32(0)])
.returns([ethereum.Value.fromI32(1)])

afterAll(() => {
// Clear the store in order to start the next test off on a clean slate
Expand Down
2 changes: 1 addition & 1 deletion tests/staking.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ createMockedFunction(controllerAddress, 'getGovernor', 'getGovernor():(address)'
// L2 graph network init EpochManager call
createMockedFunction(graphAddress, 'blockNum', 'blockNum():(uint256)')
.withArgs([])
.returns([ethereum.Value.fromI32(0)])
.returns([ethereum.Value.fromI32(1)])

// INDEXER STAKE RELATED TESTS
describe('INDEXER STAKE', () => {
Expand Down

0 comments on commit 0d4b294

Please sign in to comment.