Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix access to a Linker contract #61

Merged
merged 1 commit into from
May 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading