From d3eec6fa9af507750013fb9a96ee7b400045bb55 Mon Sep 17 00:00:00 2001 From: Oleksandr Anyshchenko Date: Mon, 31 Jul 2023 19:55:45 +0100 Subject: [PATCH] chore: apply suggestions by the code review --- engine/src/connector.rs | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/engine/src/connector.rs b/engine/src/connector.rs index 1b5cb1984..9b7cbcd4a 100644 --- a/engine/src/connector.rs +++ b/engine/src/connector.rs @@ -250,25 +250,13 @@ impl EthConnectorContract { } } - /// Get accounts counter for statistics. - /// It represents total unique accounts (all-time, including accounts which now have zero balance). - pub fn get_accounts_counter(&self) -> PromiseCreateArgs { - PromiseCreateArgs { - target_account_id: self.get_eth_connector_contract_account(), - method: "get_accounts_counter".to_string(), - args: Vec::new(), - attached_balance: ZERO_ATTACHED_BALANCE, - attached_gas: GAS_FOR_FINISH_DEPOSIT, - } - } - pub fn get_bridge_prover(&self) -> PromiseCreateArgs { PromiseCreateArgs { target_account_id: self.get_eth_connector_contract_account(), method: "get_bridge_prover".to_string(), args: Vec::new(), attached_balance: ZERO_ATTACHED_BALANCE, - attached_gas: GAS_FOR_FINISH_DEPOSIT, + attached_gas: VIEW_CALL_GAS, } } @@ -301,7 +289,7 @@ impl EthConnectorContract { method: "ft_metadata".to_string(), args: Vec::new(), attached_balance: ZERO_ATTACHED_BALANCE, - attached_gas: GAS_FOR_FINISH_DEPOSIT, + attached_gas: VIEW_CALL_GAS, } }