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.
2 parents 8d120e1 + 5f0418a commit a3add4fCopy full SHA for a3add4f
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