Skip to content

Commit

Permalink
added test code for contract injection
Browse files Browse the repository at this point in the history
  • Loading branch information
H34D committed Apr 17, 2023
1 parent ce3d804 commit 621c583
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion src/helpers/masa.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,31 @@ export const reloadMasa = (overrideConfig: Partial<MasaArgs>) => {
delete overrideConfig.networkName;
}
}
masa = new Masa({ ...masaArgs, ...overrideConfig });

/*
const contractOverrides: Partial<IIdentityContracts> = {
SoulStoreContract: SoulStore__factory.connect(
constants.AddressZero,
overrideConfig.wallet || masaArgs.wallet
),
SoulNameContract: SoulName__factory.connect(
constants.AddressZero,
overrideConfig.wallet || masaArgs.wallet
),
};
if (contractOverrides.SoulStoreContract) {
contractOverrides.SoulStoreContract.hasAddress = true;
}
if (contractOverrides.SoulNameContract) {
contractOverrides.SoulNameContract.hasAddress = true;
}
*/

masa = new Masa({
...masaArgs,
...overrideConfig,
});
};

export let masa = new Masa(masaArgs);

0 comments on commit 621c583

Please sign in to comment.