Skip to content

Commit 8a49a75

Browse files
committed
fix: ICRC-1 transaction kind is expected to be transfer not xfer
1 parent 8937c55 commit 8a49a75

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

common/src/account_transfers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ impl From<FundsTransfer> for Transaction {
530530
}
531531
} else {
532532
Transaction {
533-
kind: "xfer".into(),
533+
kind: "transfer".into(),
534534
mint: None,
535535
burn: None,
536536
transfer: Some(Transfer {

ic-canister/tests/test_icrc1.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,10 @@ fn test_multiple_transfers() {
110110
assert_eq!(get_tx_response1.log_length, 10u8);
111111

112112
assert_eq!(get_tx_response1.transactions.len(), 1);
113-
assert_eq!(get_tx_response1.transactions[0].kind, "xfer".to_string());
113+
assert_eq!(
114+
get_tx_response1.transactions[0].kind,
115+
"transfer".to_string()
116+
);
114117

115118
ctx.ffwd_to_next_block(ts_ns);
116119

0 commit comments

Comments
 (0)