diff --git a/CHANGELOG.md b/CHANGELOG.md index c2eb65083d34a1..3dc582bab7f20d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/transaction-status/src/parse_token.rs b/transaction-status/src/parse_token.rs index d445ba51101607..cbdc7ccbb54ab7 100644 --- a/transaction-status/src/parse_token.rs +++ b/transaction-status/src/parse_token.rs @@ -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(), }), }) } @@ -1737,7 +1737,7 @@ mod test { instruction_type: "amountToUiAmount".to_string(), info: json!({ "mint": mint_pubkey.to_string(), - "amount": 4242, + "amount": "4242", }) } );