Skip to content

Commit

Permalink
Use local provider for tests (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
StanislavBreadless authored Sep 26, 2023
1 parent 503c1f1 commit f06a583
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ethereum/test/unit_tests/executor_test.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ describe(`Executor tests`, function () {

describe(`Commiting functionality`, async function () {
before(async () => {
currentTimestamp = (await hardhat.ethers.providers.getDefaultProvider().getBlock(`latest`)).timestamp;
currentTimestamp = (await owner.provider.getBlock(`latest`)).timestamp;
newCommitBlockInfo = {
blockNumber: 1,
timestamp: currentTimestamp,
Expand Down

0 comments on commit f06a583

Please sign in to comment.