From 45979273f0298e80920e282cb61f288f49fe39d2 Mon Sep 17 00:00:00 2001 From: Dmytro Stebaiev Date: Tue, 21 May 2024 16:07:15 +0300 Subject: [PATCH] Fix access to a Linker contract --- python/src/skale_contracts/projects/ima.py | 5 ----- .../src/projects/ima/mainnet/MainnetImaInstance.ts | 12 ------------ 2 files changed, 17 deletions(-) diff --git a/python/src/skale_contracts/projects/ima.py b/python/src/skale_contracts/projects/ima.py index dd2a0d7..ee1b062 100644 --- a/python/src/skale_contracts/projects/ima.py +++ b/python/src/skale_contracts/projects/ima.py @@ -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() ) diff --git a/typescript/base/src/projects/ima/mainnet/MainnetImaInstance.ts b/typescript/base/src/projects/ima/mainnet/MainnetImaInstance.ts index 5c8350f..92e614c 100644 --- a/typescript/base/src/projects/ima/mainnet/MainnetImaInstance.ts +++ b/typescript/base/src/projects/ima/mainnet/MainnetImaInstance.ts @@ -44,18 +44,6 @@ export class MainnetImaInstance extends "functionName": "communityPool" } ) as Promise; - } 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; } return this.project.network.adapter.makeCall( await this.getContractManager(),