Skip to content

modify evm#45

Merged
veithly merged 1 commit intoXSpoonAi:mainfrom
moonpyt:feature/1121
Dec 4, 2025
Merged

modify evm#45
veithly merged 1 commit intoXSpoonAi:mainfrom
moonpyt:feature/1121

Conversation

@moonpyt
Copy link
Copy Markdown
Collaborator

@moonpyt moonpyt commented Dec 4, 2025

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.

ℹ️ 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 on lines +209 to +211
# RLP encode
encoded = rlp.encode(fields)
raw_tx_hex = "0x02" + encoded.hex() # 0x02 prefix for EIP-1559
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 Stop converting legacy Turnkey txs to EIP-1559 type

Within the legacy transaction branch of TurnkeySigner.sign_transaction, the transaction is RLP-encoded with a 0x02 prefix (raw_tx_hex = "0x02" + encoded.hex()), which forces every gasPrice-based legacy transaction into an EIP-1559 type-2 payload. Chains that do not support type-2 transactions (e.g., BSC or other non-London EVM networks) will reject these signed payloads as an unsupported type, so Turnkey-signed transfers on those chains now fail where the prior implementation preserved the legacy type.

Useful? React with 👍 / 👎.

@veithly veithly merged commit b4706a8 into XSpoonAi:main Dec 4, 2025
1 check 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.

2 participants