Skip to content

Commit

Permalink
Style fix for cargo fmt check
Browse files Browse the repository at this point in the history
  • Loading branch information
staffik committed Oct 31, 2023
1 parent 4a08f48 commit 1c6cf23
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions core/primitives-core/src/runtime/fees.rs
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,9 @@ pub fn transfer_exec_fee(
// Currently, no account is created on transfer to ETH-implicit account, just a regular transfer.
(true, AccountType::EthImplicitAccount) => transfer_fee,
// Extra fees for the CreateAccount and AddFullAccessKey.
(true, AccountType::NearImplicitAccount) => transfer_fee + create_account_fee + add_access_key_fee,
(true, AccountType::NearImplicitAccount) => {
transfer_fee + create_account_fee + add_access_key_fee
}
}
}

Expand All @@ -236,7 +238,7 @@ pub fn transfer_send_fee(
let transfer_fee = cfg.fee(ActionCosts::transfer).send_fee(sender_is_receiver);
let create_account_fee = cfg.fee(ActionCosts::create_account).send_fee(sender_is_receiver);
let add_access_key_fee = cfg.fee(ActionCosts::add_full_access_key).send_fee(sender_is_receiver);

match (implicit_account_creation_allowed, receiver_account_type) {
// Regular transfer to a named account.
(_, AccountType::NamedAccount) => transfer_fee,
Expand All @@ -245,6 +247,8 @@ pub fn transfer_send_fee(
// Currently, no account is created on transfer to ETH-implicit account, just a regular transfer.
(true, AccountType::EthImplicitAccount) => transfer_fee,
// Extra fees for the CreateAccount and AddFullAccessKey.
(true, AccountType::NearImplicitAccount) => transfer_fee + create_account_fee + add_access_key_fee,
(true, AccountType::NearImplicitAccount) => {
transfer_fee + create_account_fee + add_access_key_fee
}
}
}

0 comments on commit 1c6cf23

Please sign in to comment.