Skip to content

improve(spokepool): Support TVM deposits#3261

Open
pxrl wants to merge 2 commits into
masterfrom
pxrl/spokePoolTvm
Open

improve(spokepool): Support TVM deposits#3261
pxrl wants to merge 2 commits into
masterfrom
pxrl/spokePoolTvm

Conversation

@pxrl
Copy link
Copy Markdown
Collaborator

@pxrl pxrl commented Apr 17, 2026

No description provided.

Copy link
Copy Markdown

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

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: ade3c9996a

ℹ️ 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".

Comment thread scripts/spokepool.ts
Comment on lines +297 to +300
// Route writes through TransactionClient so TVM origins (TRON) flow through the
// TronWeb submission path. The ethers direct-send path requires `eth_getTransactionCount`,
// which TRON's JSON-RPC compat layer does not implement.
const txnClient = new TransactionClient(logger, [signer]);
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Remove EVM-only origin guard before TVM submission path

The new TVM transaction path is effectively unreachable because deposit() still aborts non-EVM origins with assert(chainIsEvm(fromChainId)) earlier in the function, so running this script with a TVM origin (for example TRON 728126428) throws before approval/deposit submission. That means the commit does not actually support TVM-origin deposits in practice and users get an assertion failure instead of a deposit flow.

Useful? React with 👍 / 👎.

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.

2 participants