Skip to content

Conversation

@mullapudipruthvik
Copy link
Contributor

@mullapudipruthvik mullapudipruthvik commented Nov 4, 2024

Ticket: COIN-2046

TICKET: COIN-2046

Changes only to testnet

@mullapudipruthvik mullapudipruthvik force-pushed the COIN-2046-support-eip1559-for-celo branch 6 times, most recently from b26b94a to 94ea97b Compare November 7, 2024 05:27
const tx = await txBuilder.build();
const txJson = tx.toJson();
should.equal(txJson.v, '0xaef3');
should.equal(txJson.v, '0x015e09');
Copy link
Contributor Author

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

@mullapudipruthvik mullapudipruthvik force-pushed the COIN-2046-support-eip1559-for-celo branch from 94ea97b to a53163e Compare November 7, 2024 06:51
@mullapudipruthvik mullapudipruthvik marked this pull request as ready for review November 7, 2024 08:59
@mullapudipruthvik mullapudipruthvik requested a review from a team as a code owner November 7, 2024 08:59
@mullapudipruthvik mullapudipruthvik force-pushed the COIN-2046-support-eip1559-for-celo branch from a53163e to 819193f Compare November 8, 2024 07:04
gianchandania
gianchandania previously approved these changes Nov 8, 2024
@mullapudipruthvik mullapudipruthvik marked this pull request as draft November 18, 2024 05:04
@mullapudipruthvik mullapudipruthvik force-pushed the COIN-2046-support-eip1559-for-celo branch 13 times, most recently from 191184c to 945fb3c Compare November 19, 2024 07:10
@mullapudipruthvik mullapudipruthvik marked this pull request as ready for review November 19, 2024 07:46
*
* @protected for internal use when the enableFinalVField flag is true.
*/
protected getFinalV(): string {
Copy link
Contributor

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?

Copy link
Contributor Author

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 {
Copy link
Contributor

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?

Copy link
Contributor Author

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' }
Copy link
Contributor

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 ?

Ticket: COIN-2046

TICKET: COIN-2046

BREAKING CHANGE: This commit updates the hardfork of testnet celo, which
changes the final v value and adds support to eip1559 txn
@mullapudipruthvik mullapudipruthvik force-pushed the COIN-2046-support-eip1559-for-celo branch from 945fb3c to 3a7a64d Compare November 25, 2024 14:18
@mullapudipruthvik mullapudipruthvik merged commit 35171a2 into master Nov 26, 2024
7 checks 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.

4 participants