Skip to content

Commit

Permalink
fix block too old (#98)
Browse files Browse the repository at this point in the history
* fix block too old

* fix rpc url

* updated workflow
  • Loading branch information
0xKurt authored Sep 6, 2023
1 parent 351f831 commit 9c50f53
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ jobs:
pnpm compile
- name: Test contract
env:
FORK_RPC_URL: ${{ secrets.FORK_RPC_URL }}
run: |
pnpm test
Expand Down
4 changes: 2 additions & 2 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,8 @@ const config: HardhatUserConfig = {
localhost: createTestnetConfig("localhost", "http://localhost:8545"),
hardhat: {
forking: {
url: `https://goerli.infura.io/v3/${infuraIdKey}`,
blockNumber: 9188740, // A recent block where both AllowanceModule an Safe factory exist
url: `${process.env.FORK_RPC_URL}`,
// blockNumber: 9188740, // A recent block where both AllowanceModule an Safe factory exist
},
},
},
Expand Down

0 comments on commit 9c50f53

Please sign in to comment.