Skip to content

Commit

Permalink
Undo making network mandatory.
Browse files Browse the repository at this point in the history
  • Loading branch information
mariacarmina committed Oct 8, 2024
1 parent 0577262 commit 0863047
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/contracts/Datatoken.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export class Datatoken extends SmartContract {
*/
constructor(
signer: Signer,
network: string | number,
network?: string | number,
config?: Config,
abi?: AbiItem[],
abiEnterprise?: AbiItem[]
Expand Down
2 changes: 1 addition & 1 deletion src/contracts/SmartContract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export abstract class SmartContract {
*/
constructor(
signer: Signer,
network: string | number,
network?: string | number,
config?: Config,
abi?: AbiItem[]
) {
Expand Down
2 changes: 1 addition & 1 deletion src/contracts/SmartContractWithAddress.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export abstract class SmartContractWithAddress extends SmartContract {
constructor(
address: string,
signer: Signer,
network: string | number,
network?: string | number,
config?: Config,
abi?: AbiItem[]
) {
Expand Down

0 comments on commit 0863047

Please sign in to comment.