Skip to content

Commit

Permalink
fix: set the ICRC-1 fee to Some(value) in the TX log
Browse files Browse the repository at this point in the history
  • Loading branch information
yanliu38 committed Jan 31, 2025
1 parent 8a49a75 commit 2b0a0e4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions common/src/account_transfers.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use crate::{
account_balance_add, account_balance_get, account_balance_sub, amount_as_string,
get_pubkey_from_principal, get_timestamp_ns, ledger_add_reputation_change,
slice_to_32_bytes_array, DccIdentity, TokenAmountE9s, TransferError, LABEL_DC_TOKEN_TRANSFER,
MINTING_ACCOUNT, MINTING_ACCOUNT_PRINCIPAL,
slice_to_32_bytes_array, DccIdentity, TokenAmountE9s, TransferError, DC_TOKEN_TRANSFER_FEE_E9S,
LABEL_DC_TOKEN_TRANSFER, MINTING_ACCOUNT, MINTING_ACCOUNT_PRINCIPAL,
};
use base64::engine::general_purpose::STANDARD as BASE64;
use base64::Engine;
Expand Down Expand Up @@ -538,7 +538,7 @@ impl From<FundsTransfer> for Transaction {
to: ft.to().into(),
spender: None,
amount: ft.amount().into(),
fee: None,
fee: Some(DC_TOKEN_TRANSFER_FEE_E9S.into()),
memo: None,
created_at_time: ft.created_at_time(),
}),
Expand Down

0 comments on commit 2b0a0e4

Please sign in to comment.