Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP add support for EIP1559 and CIP42 to ContractKit (wallet-base) #10474

Closed
wants to merge 225 commits into from

Conversation

aaronmgdr
Copy link
Member

Description

This WIP Change adds eip1559 and cip42 signing / serialization. recovery to Contractkit (actually to wallet-base and wallet-local and celo/connect, as these are were the actions happens)

Other changes

Describe any minor or "drive-by" changes here.

Tested

New and Old tests

Related issues

Backwards compatibility

No. Deprecated Functions related to gasPrice have been removed.

Documentation

@aaronmgdr aaronmgdr requested a review from a team as a code owner August 8, 2023 16:04
@aaronmgdr aaronmgdr requested a review from a team August 8, 2023 16:04
@aaronmgdr aaronmgdr marked this pull request as draft August 8, 2023 16:05
stop ts  build from looking at tests because it gets mad at viem. (WHO DID NOTHING WRONG) tests still get types looked at via ts-jest so no harm
Comment on lines +443 to +448
export function getSignerFromTx(serializedTransaction: string): string {
const transactionArray: any[] = RLP.decode(`0x${serializedTransaction.slice(4)}`)
const signer = getPublicKeyofSignerFromTx(transactionArray)
const address = publicToAddress(signer)
return `0x` + address.toString('hex')
}
Copy link
Member Author

Choose a reason for hiding this comment

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

this doesnt work

Copy link
Contributor

Choose a reason for hiding this comment

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

This should not be changed.

It is currently preventing GH action from running.

Copy link
Member Author

Choose a reason for hiding this comment

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

yeah when i started i branched off the node 18 branch. im gonna try moving my commits to a new branch off master

@aaronmgdr
Copy link
Member Author

closed for #10483

@aaronmgdr aaronmgdr closed this Aug 11, 2023
@aaronmgdr aaronmgdr deleted the aaronmgdr/cip42 branch October 18, 2023 11:34
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.

Add CIP42 support to ContractKit / SDKs
4 participants