Skip to content

Commit

Permalink
Refactor SchainImaProject: update instance retrieval logic to use mai…
Browse files Browse the repository at this point in the history
…nContractName for improved clarity
  • Loading branch information
yavrsky committed Jan 9, 2025
1 parent efa16cf commit a1e10e1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export class SchainImaProject<ContractType> extends
) {
if (aliasOrAddress === PREDEPLOYED_ALIAS) {
return this.createInstance(SchainImaInstance.PREDEPLOYED.
get("MessageProxyForSchain")! as ContractAddress);
get(this.mainContractName)! as ContractAddress);
}
return super.getInstance(aliasOrAddress);
}
Expand Down

0 comments on commit a1e10e1

Please sign in to comment.