Skip to content

Commit

Permalink
fix: Revert to previous deployment loading behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
wottpal committed Feb 5, 2024
1 parent 3dda3e1 commit 08fa293
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/hooks/useRegisteredContract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,5 @@ export const useRegisteredContract = (contractId: string, networkId?: string) =>

const deployment = getDeployment(deployments || [], contractId, networkId)

if (!deployment) {
throw new Error(`No deployment found for contractId ${contractId} on network ${networkId}`)
}

return useContract(deployment.abi, deployment.address)
return useContract(deployment?.abi, deployment?.address)
}

0 comments on commit 08fa293

Please sign in to comment.