Skip to content

Commit

Permalink
fix skip loading
Browse files Browse the repository at this point in the history
  • Loading branch information
H34D committed Sep 27, 2023
1 parent 218c69d commit 542d9f1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/contracts/masa-contracts.ts
Expand Up @@ -49,19 +49,17 @@ export class MasaContracts extends MasaBase {
public constructor({
masa,
contractOverrides,
skipLoadingContracts = false,
}: {
masa: MasaInterface;
contractOverrides?: Partial<IIdentityContracts>;
skipLoadingContracts?: boolean;
}) {
super(masa);

this.instances = {
...loadIdentityContracts({
signer: this.masa.config.signer,
networkName: this.masa.config.networkName,
skipLoadingContracts,
skipLoadingContracts: this.masa.config.skipLoadingContracts,
}),
...contractOverrides,
};
Expand Down
1 change: 1 addition & 0 deletions src/interface/masa-config.ts
Expand Up @@ -10,4 +10,5 @@ export interface MasaConfig {
readonly network?: Network;
readonly signer: Signer;
readonly verbose: boolean;
readonly skipLoadingContracts: boolean;
}
2 changes: 1 addition & 1 deletion src/masa.ts
Expand Up @@ -55,6 +55,7 @@ export class Masa implements MasaInterface {
network: SupportedNetworks[networkName],
signer,
verbose,
skipLoadingContracts,
};

// masa client
Expand All @@ -71,7 +72,6 @@ export class Masa implements MasaInterface {
this.contracts = new MasaContracts({
masa: this,
contractOverrides,
skipLoadingContracts,
});
// account + session
this.account = new MasaAccount(this);
Expand Down

0 comments on commit 542d9f1

Please sign in to comment.