Skip to content

Commit

Permalink
chore: [#3] fix error when not connected
Browse files Browse the repository at this point in the history
  • Loading branch information
mdnorman committed May 12, 2022
1 parent 1b20023 commit 97a3f67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hooks/contractHooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export const attachContract = <F extends ContractFactory, C extends FactoryContr
address: string,
provider: JsonRpcProvider | null,
): C | null => {
if (address === '' || address === ZERO_ADDRESS) {
if (!address || address === ZERO_ADDRESS) {
return null;
}

Expand All @@ -140,7 +140,7 @@ export const attachInterface = <C extends Contract>(
address: string,
provider: JsonRpcProvider | null,
): C | null => {
if (address === '' || address === ZERO_ADDRESS) {
if (!address || address === ZERO_ADDRESS) {
return null;
}

Expand Down

0 comments on commit 97a3f67

Please sign in to comment.