Skip to content

Commit

Permalink
Fix access to a Linker contract
Browse files Browse the repository at this point in the history
  • Loading branch information
DimaStebaev committed May 21, 2024
1 parent 058c05a commit 4597927
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
5 changes: 0 additions & 5 deletions python/src/skale_contracts/projects/ima.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,6 @@ def get_contract_address(
self.get_contract("MessageProxyForMainnet")
.functions.communityPool().call()
)
if name == 'Linker':
return to_canonical_address(
self.get_contract("MessageProxyForMainnet")
.functions.linker().call()
)
return to_canonical_address(
self.contract_manager.functions.getContract(name).call()
)
Expand Down
12 changes: 0 additions & 12 deletions typescript/base/src/projects/ima/mainnet/MainnetImaInstance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,18 +44,6 @@ export class MainnetImaInstance<ContractType> extends
"functionName": "communityPool"
}
) as Promise<string>;
} else if (name === "Linker") {
return this.project.network.adapter.makeCall(
{
"abi": await this.getContractAbi("DepositBoxEth"),
"address":
await this.getContractAddress("DepositBoxEth")
},
{
"args": [],
"functionName": "linker"
}
) as Promise<string>;
}
return this.project.network.adapter.makeCall(
await this.getContractManager(),
Expand Down

0 comments on commit 4597927

Please sign in to comment.