Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ Release channels have their own copy of this changelog:
when the `replaceRecentBlockhash` config param is `true` (#380)
* SDK: `cargo test-sbf` accepts `--tools-version`, just like `build-sbf` (#1359)
* CLI: Can specify `--full-snapshot-archive-path` (#1631)
* transaction-status: The SPL Token `amountToUiAmount` instruction parses the amount into a string instead of a number (#1737)

## [1.18.0]
* Changes
Expand Down
4 changes: 2 additions & 2 deletions transaction-status/src/parse_token.rs
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ pub fn parse_token(
instruction_type: "amountToUiAmount".to_string(),
info: json!({
"mint": account_keys[instruction.accounts[0] as usize].to_string(),
"amount": amount,
"amount": amount.to_string(),
}),
})
}
Expand Down Expand Up @@ -1737,7 +1737,7 @@ mod test {
instruction_type: "amountToUiAmount".to_string(),
info: json!({
"mint": mint_pubkey.to_string(),
"amount": 4242,
"amount": "4242",
})
}
);
Expand Down