Skip to content

Commit

Permalink
trying_to_create_implicit_account fee for eth-implicit
Browse files Browse the repository at this point in the history
  • Loading branch information
staffik committed Nov 6, 2023
1 parent bf3e4ec commit b3c6ae6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions integration-tests/src/tests/standard_cases/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,6 @@ pub fn trying_to_create_implicit_account(node: impl Node, public_key: PublicKey)
)
.unwrap();

let fail_cost = fee_helper.create_account_transfer_full_key_cost_fail_on_create_account();
let create_account_fee = fee_helper.cfg().fee(ActionCosts::create_account).send_fee(false);
let add_access_key_fee = fee_helper
.cfg()
Expand All @@ -423,10 +422,12 @@ pub fn trying_to_create_implicit_account(node: impl Node, public_key: PublicKey)

let cost = match receiver_id.get_account_type() {
AccountType::NearImplicitAccount => {
fail_cost + fee_helper.gas_to_balance(create_account_fee + add_access_key_fee)
fee_helper.create_account_transfer_full_key_cost_fail_on_create_account()
+ fee_helper.gas_to_balance(create_account_fee + add_access_key_fee)
}
AccountType::EthImplicitAccount => {
fail_cost + fee_helper.gas_to_balance(create_account_fee)
fee_helper.create_account_transfer_cost_fail_on_create_account()
+ fee_helper.gas_to_balance(create_account_fee)
}
AccountType::NamedAccount => std::panic!("must be implicit"),
};
Expand Down

0 comments on commit b3c6ae6

Please sign in to comment.