Skip to content

Commit

Permalink
Fix fee field in record_transfer
Browse files Browse the repository at this point in the history
  • Loading branch information
darthsiroftardis committed Oct 22, 2024
1 parent 9669f5b commit f0efe9f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion execution_engine/src/runtime/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2280,7 +2280,13 @@ where

let txn_hash = self.context.get_transaction_hash();
let from = InitiatorAddr::AccountHash(self.context.get_caller());
let fee = Gas::zero(); // TODO
let fee = Gas::from(
self.context
.engine_config()
.system_config()
.mint_costs()
.transfer,
);
let transfer = Transfer::V2(TransferV2::new(
txn_hash, from, maybe_to, source, target, amount, fee, id,
));
Expand Down

0 comments on commit f0efe9f

Please sign in to comment.