Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixFan1992 committed Feb 5, 2025
1 parent c978305 commit 341807d
Show file tree
Hide file tree
Showing 8 changed files with 152 additions and 546 deletions.
262 changes: 5 additions & 257 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"eslint": "^8.51.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.0.1",
"esmify": "2.1.1",
"esmify": "^0.1.2",
"jest": "^29.5.0",
"nock": "^13.3.1",
"prettier": "^3.0.3",
Expand Down
8 changes: 6 additions & 2 deletions src/fetchRequestCommitment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ export const fetchRequestCommitment = async ({
}
}

const functionsRouter = new Contract(functionsRouterAddress, FunctionsRouterSource.abi, provider)
const functionsRouter = new Contract(
functionsRouterAddress,
FunctionsRouterSource.abi,
await provider.getSigner(),
)
const donIdBytes32 = encodeBytes32String(donId)
let functionsCoordinatorAddress: string
try {
Expand All @@ -41,7 +45,7 @@ export const fetchRequestCommitment = async ({
const functionsCoordinator = new Contract(
functionsCoordinatorAddress,
FunctionsCoordinatorSource.abi,
provider,
await provider.getSigner(),
)
const eventFilter = functionsCoordinator.filters.OracleRequest(requestId)
const logs = await provider.getLogs({
Expand Down
Loading

0 comments on commit 341807d

Please sign in to comment.