Skip to content

[Build Tx/Smart Contract] Auto-fetch contract methods on valid contract id#2129

Merged
jeesunikim merged 2 commits into
mainfrom
issue-2028
Jun 29, 2026
Merged

[Build Tx/Smart Contract] Auto-fetch contract methods on valid contract id#2129
jeesunikim merged 2 commits into
mainfrom
issue-2028

Conversation

@jeesunikim

Copy link
Copy Markdown
Contributor

Debounced effect fetches contract data as soon as a valid contract id is filled in, instead of requiring a button click. Replaces the mount-only auto-fetch and is gated on contract id validation.

Debounced effect fetches contract data as soon as a valid contract id is
filled in, instead of requiring a button click. Replaces the mount-only
auto-fetch and is gated on contract id validation.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings June 26, 2026 23:08
@github-project-automation github-project-automation Bot moved this to Backlog (Not Ready) in DevX Jun 26, 2026
@jeesunikim jeesunikim changed the title [Smart Contract Page] Auto-fetch contract methods on valid contract id [Build Tx/Smart Contract] Auto-fetch contract methods on valid contract id Jun 26, 2026
@jeesunikim jeesunikim requested a review from quietbits June 26, 2026 23:09
@jeesunikim jeesunikim linked an issue Jun 26, 2026 that may be closed by this pull request

Copilot AI 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.

Pull request overview

This PR updates the Soroban invoke-contract form control to automatically fetch contract metadata/methods once a valid contract ID is entered, replacing the previous mount-only auto-fetch behavior and reducing reliance on an explicit “Fetch contract methods” button click.

Changes:

  • Replace mount-only auto-fetch with a debounced useEffect that triggers after the user finishes entering a valid contract ID.
  • Gate auto-fetch on contract ID validation to avoid fetching on incomplete/invalid IDs.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/components/FormElements/FetchContractMethodPickerWithQuery.tsx
@stellar-jenkins-ci

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 432a7c9ef0

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread src/components/FormElements/FetchContractMethodPickerWithQuery.tsx
@stellar-jenkins-ci

Copy link
Copy Markdown

@jeesunikim jeesunikim merged commit e15dfb9 into main Jun 29, 2026
7 checks passed
@github-project-automation github-project-automation Bot moved this from Backlog (Not Ready) to Done in DevX Jun 29, 2026
@jeesunikim jeesunikim deleted the issue-2028 branch June 29, 2026 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

"Fetch contract" button to autoload on build transaction

3 participants