Skip to content
This repository has been archived by the owner on Mar 24, 2023. It is now read-only.

feat: Support non eip155 tx #490

Merged
merged 2 commits into from Aug 22, 2022
Merged

feat: Support non eip155 tx #490

merged 2 commits into from Aug 22, 2022

Conversation

classicalliu
Copy link
Contributor

packages/api-server/src/convert-tx.ts Outdated Show resolved Hide resolved
};

const encoded = encodePolyjuiceTransaction(rawTx);
const encoded: Buffer = rlp.encode(beforeEncode);
Copy link
Contributor

Choose a reason for hiding this comment

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

Creating standalone util functions to make it more readable would be helpful, such as bool isEip155Transaction, bytes rlpEncodeEip155Transaction, and bytes rlpEncodeNonEip155Transaction.

packages/api-server/cli/fix-eth-tx-hash.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@RetricSu RetricSu left a comment

Choose a reason for hiding this comment

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

@classicalliu
Copy link
Contributor Author

@RetricSu RetricSu marked this pull request as draft August 17, 2022 02:29
@RetricSu RetricSu marked this pull request as ready for review August 22, 2022 03:25
@RetricSu RetricSu merged commit 93853f8 into main Aug 22, 2022
@RetricSu RetricSu deleted the support-non-eip155-tx branch August 22, 2022 03:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants