diff --git a/apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/public-pages/_components/getContractCreator.tsx b/apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/public-pages/_components/getContractCreator.tsx index 9a4e67ed3b2..4b1a24a1464 100644 --- a/apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/public-pages/_components/getContractCreator.tsx +++ b/apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/public-pages/_components/getContractCreator.tsx @@ -9,19 +9,23 @@ export async function getContractCreator( contract: ThirdwebContract, functionSelectors: string[], ) { - if (isOwnerSupported(functionSelectors)) { - return owner({ - contract, - }); - } + try { + if (isOwnerSupported(functionSelectors)) { + return await owner({ + contract, + }); + } - if (isGetRoleAdminSupported(functionSelectors)) { - return getRoleMember({ - contract, - index: BigInt(0), - role: "admin", - }); - } + if (isGetRoleAdminSupported(functionSelectors)) { + return await getRoleMember({ + contract, + index: BigInt(0), + role: "admin", + }); + } - return null; + return null; + } catch { + return null; + } }