Repository navigation
Update ton-address extension - #22370
Conversation
- Update changelog - Merge branch \'contributions/merge-1761244610323\' - Pull contributions - Fix testnet->mainnet conversion
commented
Oct 23, 2025
|
Thank you for the update! 🎉 You can expect an initial review within five business days. |
left a comment
There was a problem hiding this comment.
Greptile Overview
Greptile Summary
This PR fixes a bug in the TON address conversion logic by explicitly passing isTestOnly=false as the fourth parameter to the toString method when generating mainnet addresses. Previously, the parameter was omitted, which likely defaulted to an incorrect value, causing testnet addresses to not be properly converted to mainnet format.
Key changes:
- Added explicit
falseparameter for mainnet address conversions (Bounceable and Non-bounceable) - The testnet address conversions already had the correct
trueparameter - Updated CHANGELOG.md to document the bug fix
Minor issue:
- Small typo in CHANGELOG: "address" should be plural "addresses"
Confidence Score: 5/5
- This PR is safe to merge with minimal risk - it's a targeted bug fix with clear intent
- The change is a simple, well-understood bug fix that explicitly sets a boolean parameter. The logic is straightforward: mainnet addresses need
isTestOnly=false, which is now correctly specified. The only issue is a minor typo in the CHANGELOG that doesn't affect functionality. - No files require special attention - the logic change is correct and the typo in CHANGELOG is trivial
Important Files Changed
File Analysis
| Filename | Score | Overview |
|---|---|---|
| extensions/ton-address/src/lib/utils.ts | 5/5 | Adds explicit isTestOnly=false parameter to mainnet address conversions, ensuring testnet addresses are correctly converted to mainnet format |
| extensions/ton-address/CHANGELOG.md | 4/5 | Adds changelog entry for the bug fix with a minor typo: 'address' should be plural 'addresses' |
2 files reviewed, 1 comment
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
commented
Oct 27, 2025
|
Published to the Raycast Store: |
commented
Oct 27, 2025
|
🎉 🎉 🎉 We've rewarded your Raycast account with some credits. You will soon be able to exchange them for some swag. |
Description
Explicitly passing false for
isTestOnlyoption intoStringmethod so testnet addresses are correctly converted to mainnet ones.Screencast
Checklist
npm run buildand tested this distribution build in Raycastassetsfolder are used by the extension itselfREADMEare placed outside of themetadatafolder