Skip to content

Commit

Permalink
make fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
dnkolegov committed Jan 9, 2024
1 parent 215a869 commit 901252d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
18 changes: 12 additions & 6 deletions ipc/ipc/provider/src/manager/evm/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ use ethers_contract::{ContractError, EthLogDecode, LogMeta};
use ipc_actors_abis::{
bottom_up_router_facet, gateway_getter_facet, gateway_manager_facet, gateway_messenger_facet,
lib_gateway, lib_quorum, lib_staking_change_log, register_subnet_facet,
subnet_actor_getter_facet, subnet_actor_manager_facet, subnet_actor_reward_facet, subnet_actor_checkpointing_facet,
subnet_actor_checkpointing_facet, subnet_actor_getter_facet, subnet_actor_manager_facet,
subnet_actor_reward_facet,
};
use ipc_sdk::evm::{fil_to_eth_amount, payload_to_evm_address, subnet_id_to_evm_addresses};
use ipc_sdk::validator::from_contract_validators;
Expand Down Expand Up @@ -1011,11 +1012,14 @@ impl BottomUpCheckpointRelayer for EthSubnetManager {
// .into_iter()
// .map(subnet_actor_manager_facet::CrossMsg::try_from)
// .collect::<result::Result<Vec<_>, _>>()?;
let checkpoint = subnet_actor_checkpointing_facet::BottomUpCheckpoint::try_from(checkpoint)?;
let checkpoint =
subnet_actor_checkpointing_facet::BottomUpCheckpoint::try_from(checkpoint)?;

let signer = Arc::new(self.get_signer(submitter)?);
let contract =
subnet_actor_checkpointing_facet::SubnetActorCheckpointingFacet::new(address, signer.clone());
let contract = subnet_actor_checkpointing_facet::SubnetActorCheckpointingFacet::new(
address,
signer.clone(),
);
let call = contract.submit_checkpoint(checkpoint, signatories, signatures);
let call = call_with_premium_estimation(signer, call).await?;

Expand Down Expand Up @@ -1159,8 +1163,10 @@ impl BottomUpCheckpointRelayer for EthSubnetManager {
.collect::<result::Result<Vec<_>, _>>()?;

let signer = Arc::new(self.get_signer(submitter)?);
let contract =
subnet_actor_checkpointing_facet::SubnetActorCheckpointingFacet::new(address, signer.clone());
let contract = subnet_actor_checkpointing_facet::SubnetActorCheckpointingFacet::new(
address,
signer.clone(),
);
let call = contract.submit_bottom_up_msg_batch(
subnet_actor_checkpointing_facet::BottomUpMsgBatch::try_from(batch)?,
signatories,
Expand Down
6 changes: 5 additions & 1 deletion ipc/ipc/sdk/src/evm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ use fvm_shared::address::{Address, Payload};
use fvm_shared::clock::ChainEpoch;
use fvm_shared::econ::TokenAmount;
use fvm_shared::MethodNum;
use ipc_actors_abis::{bottom_up_router_facet, gateway_getter_facet, gateway_manager_facet, gateway_messenger_facet, lib_gateway, register_subnet_facet, subnet_actor_checkpointing_facet, subnet_actor_diamond, subnet_actor_getter_facet, top_down_finality_facet, xnet_messaging_facet};
use ipc_actors_abis::{
bottom_up_router_facet, gateway_getter_facet, gateway_manager_facet, gateway_messenger_facet,
lib_gateway, register_subnet_facet, subnet_actor_checkpointing_facet, subnet_actor_diamond,
subnet_actor_getter_facet, top_down_finality_facet, xnet_messaging_facet,
};

/// The type conversion for IPC structs to evm solidity contracts. We need this convenient macro because
/// the abigen is creating the same struct but under different modules. This save a lot of
Expand Down

0 comments on commit 901252d

Please sign in to comment.