We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cef1ffd commit 7ca424cCopy full SHA for 7ca424c
contracts/scripts/getPoliciesV1.ts
@@ -13,11 +13,11 @@ interface Policy {
13
async function main() {
14
const policyRegistryV1 = await ethers.getContractAt("PolicyRegistry", "0xCf1f07713d5193FaE5c1653C9f61953D048BECe4");
15
16
- const fetchPolicy = function (url: string): Promise<Policy> {
+ const fetchPolicy = (url: string): Promise<Policy> => {
17
return fetch(url).then((response) => response.json());
18
};
19
20
- const fetchPolicyUri = function (court: number): Promise<string> {
+ const fetchPolicyUri = (court: number): Promise<string> => {
21
return policyRegistryV1.policies(court);
22
23
0 commit comments