Skip to content

Commit

Permalink
chore: apply suggestions by the code review
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksuss committed Jul 31, 2023
1 parent 042e8ff commit d3eec6f
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions engine/src/connector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -250,25 +250,13 @@ impl<I: IO + Copy> EthConnectorContract<I> {
}
}

/// 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,
}
}

Expand Down Expand Up @@ -301,7 +289,7 @@ impl<I: IO + Copy> EthConnectorContract<I> {
method: "ft_metadata".to_string(),
args: Vec::new(),
attached_balance: ZERO_ATTACHED_BALANCE,
attached_gas: GAS_FOR_FINISH_DEPOSIT,
attached_gas: VIEW_CALL_GAS,
}
}

Expand Down

0 comments on commit d3eec6f

Please sign in to comment.