Skip to content
This repository was archived by the owner on Apr 12, 2021. It is now read-only.

[WIP] Clarifying comments for chainID recovery logic#272

Closed
platocrat wants to merge 3 commits intoethereum-optimism:masterfrom
platocrat:comments/for-chainid
Closed

[WIP] Clarifying comments for chainID recovery logic#272
platocrat wants to merge 3 commits intoethereum-optimism:masterfrom
platocrat:comments/for-chainid

Conversation

@platocrat
Copy link
Copy Markdown

@platocrat platocrat commented Mar 3, 2021

Description

NOTE: This is a draft

  1. Trace the use of DEFAULT_EIP155_TX which sets chainId to 420.
  2. Add better comments for how DEFAULT_EIP155_TX works and where it's used (where needed in OVM_<CONTRACT>.spec.ts).

Questions

  • Is this the correct location of initial encoding?

Fixes

Contributing Agreement

@platocrat platocrat changed the title need to trace calls to this const Clarifying comments for chainID recovery logic Mar 3, 2021
@platocrat platocrat changed the title Clarifying comments for chainID recovery logic Clarifying comments for chainID recovery logic [WIP] Mar 3, 2021
@platocrat platocrat changed the title Clarifying comments for chainID recovery logic [WIP] [WIP] Clarifying comments for chainID recovery logic Mar 3, 2021
data: `0x${'99'.repeat(10)}`,
/**
* @dev Encoding `chainId`
*/
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

this comment feels a bit disruptive, could we just append it after the line? ie.

chainId: 420, // Encoding chainId

}

/**
* @dev Trace where `DEFAULT_EIP155_TX` is called.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

WDYM by Trace?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Sorry, these were personal comments I was using as reminders

@platocrat platocrat force-pushed the comments/for-chainid branch from 07fa78c to 04ff27c Compare March 8, 2021 20:56
@platocrat platocrat requested a review from ben-chain as a code owner March 8, 2021 20:56
@platocrat platocrat requested a review from maurelian March 8, 2021 22:30
@maurelian
Copy link
Copy Markdown
Collaborator

@platocrat I'm converting this to draft status for now. Please mark it as ready for review when appropriate. :)

@maurelian maurelian marked this pull request as draft March 16, 2021 13:04
@platocrat platocrat marked this pull request as ready for review March 16, 2021 13:36
@platocrat
Copy link
Copy Markdown
Author

platocrat commented Mar 16, 2021

Almost forgot about this. I had added only a few comments

@platocrat platocrat closed this Mar 16, 2021
@platocrat platocrat deleted the comments/for-chainid branch March 16, 2021 20:44
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.

Improve clarity of chainID recovery logic

4 participants