Skip to content

Commit

Permalink
fix: optional address
Browse files Browse the repository at this point in the history
  • Loading branch information
tabaktoni committed Oct 14, 2022
1 parent 0f685ef commit 95e7e47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/contract/default.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export class Contract implements ContractInterface {
address: string,
providerOrAccount: ProviderInterface | AccountInterface = defaultProvider
) {
this.address = address.toLowerCase();
this.address = address && address.toLowerCase();
this.providerOrAccount = providerOrAccount;
this.abi = abi;
this.structs = abi
Expand Down

0 comments on commit 95e7e47

Please sign in to comment.