Skip to content

Commit

Permalink
Merge pull request #61 from skalenetwork/linker
Browse files Browse the repository at this point in the history
Fix access to a Linker contract
  • Loading branch information
DimaStebaev committed May 22, 2024
2 parents 058c05a + 4597927 commit bce7be2
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 bce7be2

Please sign in to comment.