-
Notifications
You must be signed in to change notification settings - Fork 299
feat(sdk-coin-celo): support eip1559 for celo #5090
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
Conversation
b26b94a to
94ea97b
Compare
| const tx = await txBuilder.build(); | ||
| const txJson = tx.toJson(); | ||
| should.equal(txJson.v, '0xaef3'); | ||
| should.equal(txJson.v, '0x015e09'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
after the hardfork, v value should be 2*chainId + 35
94ea97b to
a53163e
Compare
a53163e to
819193f
Compare
191184c to
945fb3c
Compare
| * | ||
| * @protected for internal use when the enableFinalVField flag is true. | ||
| */ | ||
| protected getFinalV(): string { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This method is not needed for eip1559, right? Why are we adding this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is just to unsure backward compatibility
I see testnet celo sort of support legacy as well https://alfajores.celoscan.io/tx/0x8c275e0c791d732cee3198c97ab8a54fd21b656a4a012857dddbd4c53a8e15ed
I'll test it out after release
| } | ||
|
|
||
| /** @inheritdoc */ | ||
| protected fromImplementation(rawTransaction: string): Transaction { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This method is almost similar in the celo transaction builder, what is the reason to add this here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| chainId: (coins.get('tcelo').network as EthereumNetwork).chainId, | ||
| }, | ||
| 'petersburg' | ||
| { hardfork: 'london' } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this be 'petersburg' ? how are we determining this ?
945fb3c to
3a7a64d
Compare
Ticket: COIN-2046
TICKET: COIN-2046
Changes only to testnet