Skip to content

feat(SorobanScreen): persist & pre-fill last-used contract, saved contracts list, Stellar Expert link (#347) - #434

Merged
k-deejah merged 1 commit into
Sorokit:mainfrom
BernardOnuh:feat/347-soroban-contract-history
Aug 4, 2026
Merged

feat(SorobanScreen): persist & pre-fill last-used contract, saved contracts list, Stellar Expert link (#347)#434
k-deejah merged 1 commit into
Sorokit:mainfrom
BernardOnuh:feat/347-soroban-contract-history

Conversation

@BernardOnuh

@BernardOnuh BernardOnuh commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Summary

Implements issue #347 for SorobanScreen:

  1. Last-used contract pre-filled on mount — reads localStorage["sorokit-soroban-contract-history"][0] and pre-fills the Contract ID input.
  2. Saved Contracts list — shows the most recent saved contract IDs; clicking one sets it as the active contract.
  3. Open in Stellar Expert link — appears next to the Contract ID input when contractId.trim() is non-empty, linking to the correct network (public/testnet).

Note

The core feature implementation already exists on main (merged via prior PRs, related to #350/#360-363). This PR references the acceptance-criteria coverage in SorobanScreen.test.tsx to issue #347 so the behavior is explicitly tracked against it. All 13 SorobanScreen tests pass and npm run build succeeds.

Verification

  • npm run build
  • npx vitest run src/screens/SorobanScreen.test.tsx — 13/13 ✅

closes #347

@k-deejah
k-deejah merged commit 010d22d into Sorokit:main Aug 4, 2026
2 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(SorobanScreen): last-used contract not pre-filled, no saved contracts dropdown, no Open in Stellar Expert link for contract

2 participants