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 8d120e1 commit 5f0418aCopy full SHA for 5f0418a
kms/auth-eth/hardhat.config.ts
@@ -78,6 +78,9 @@ async function getKmsAuth(ethers: any) {
78
async function getAppAuth(ethers: any, appId: string) {
79
const kmsAuth = await getKmsAuth(ethers);
80
const controller = (await kmsAuth.apps(appId)).controller;
81
+ if (controller === ethers.ZeroAddress) {
82
+ throw new Error("AppAuth contract not found");
83
+ }
84
console.log("AppAuth address:", controller);
85
return await ethers.getContractAt("AppAuth", controller);
86
}
0 commit comments