Skip to content

Update ton-address extension - #22370

Merged
raycastbot merged 3 commits into
raycast:mainfrom
drankou:ext/ton-address
Oct 27, 2025
Merged

raycastbot merged 3 commits into
raycast:mainfrom
drankou:ext/ton-address

Conversation

@drankou

@drankou drankou commented Oct 23, 2025 •

Copy link
Copy Markdown
Contributor

Description

Explicitly passing false for isTestOnly option in toString method so testnet addresses are correctly converted to mainnet ones.

Screencast

Before After
CleanShot 2025-10-23 at 20 45 53@2x CleanShot 2025-10-23 at 20 46 17@2x

Checklist

- Update changelog
- Merge branch \'contributions/merge-1761244610323\'
- Pull contributions
- Fix testnet->mainnet conversion
@raycastbot raycastbot added extension fix / improvement Label for PRs with extension's fix improvements extension: ton-address Issues related to the ton-address extension platform: macOS OP is author The OP of the PR is the author of the extension labels Oct 23, 2025
@raycastbot

ghost commented Oct 23, 2025

Copy link
Copy Markdown
Collaborator

Thank you for the update! 🎉

You can expect an initial review within five business days.

@drankou
drankou marked this pull request as ready for review October 23, 2025 18:47

ghost left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 false parameter for mainnet address conversions (Bounceable and Non-bounceable)
  • The testnet address conversions already had the correct true parameter
  • 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

Edit Code Review Agent Settings | Greptile

Comment thread extensions/ton-address/CHANGELOG.md Resolved
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>

ghost left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, approved 🔥

@raycastbot
raycastbot merged commit 1520297 into raycast:main Oct 27, 2025
@github-actions

ghost commented Oct 27, 2025

Copy link
Copy Markdown
Contributor

@raycastbot

ghost commented Oct 27, 2025

Copy link
Copy Markdown
Collaborator

🎉 🎉 🎉

We've rewarded your Raycast account with some credits. You will soon be able to exchange them for some swag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extension fix / improvement Label for PRs with extension's fix improvements extension: ton-address Issues related to the ton-address extension OP is author The OP of the PR is the author of the extension platform: macOS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants