Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: ⛔ Files ignored due to path filters (2)
📒 Files selected for processing (4)
WalkthroughUpdated Changes
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
📝 Coding Plan
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9363814db3
ℹ️ About Codex in GitHub
Your team has set up Codex to 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 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| "dependencies": { | ||
| "@coral-xyz/anchor": "0.31.1", | ||
| "@magicblock-labs/ephemeral-rollups-sdk": "0.7.1" | ||
| "@magicblock-labs/ephemeral-rollups-sdk": "file:/Users/gabrielepicco/Documents/Solana/ephemeral-rollups-sdk/ts/web3js" |
There was a problem hiding this comment.
Restore a published SDK dependency in spl-tokens/package.json
This replaces the SDK with a machine-local file: path. The spl-tokens package owns the example's test script, so any clone or CI runner outside /Users/gabrielepicco/... will fail yarn install before it can run the tests or the example. Please keep this on a published version (or a repo-relative workspace path) instead of an absolute host path.
Useful? React with 👍 / 👎.
| setTransactionSuccess(`Transfer confirmed: ${sig.substring(0, 10)}...${sig.substring(sig.length - 10, sig.length)}`); | ||
| setTransactionSuccess(`${usesQueuedPrivateTransfer ? 'Private transfer queued' : 'Transfer confirmed'}: ${sig.substring(0, 10)}...${sig.substring(sig.length - 10, sig.length)}`); | ||
| console.log("Transfer: ", sig); | ||
| await ephemeralConnection!.current!.getAccountInfo(shuttleWalletAta); |
There was a problem hiding this comment.
Don't turn confirmed L1 transfers into UI errors
After conn.confirmTransaction(...) succeeds, this unconditional read against ephemeralConnection.current can still throw. For transfers that actually ran on connection (fromBalance === 'base', including base→base queueing), an ephemeral RPC outage or propagation lag now sends execution into the catch path and reports the transfer as failed even though it already landed on L1. This follow-up read should be best-effort or limited to the flows that truly require the ephemeral account.
Useful? React with 👍 / 👎.
| initRentPdaIx( | ||
| payer.publicKey, | ||
| rentPda, | ||
| ), |
There was a problem hiding this comment.
Avoid re-initializing the shared rent PDA on every setup
deriveRentPda() returns a singleton PDA, but setupAll now unconditionally appends initRentPdaIx(...) to every mint-setup transaction. That makes the exposed Reset Mint → Setup flow brittle: once a previous run has already created the rent sponsor PDA on this cluster, the next setup will try to initialize the same account again and fail. This needs an existence check or an idempotent init path.
Useful? React with 👍 / 👎.
Summary by CodeRabbit
Release Notes
New Features
Improvements
Dependencies