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

Address book controller chainId potentially misleading #150

Closed
rekmarks opened this issue Aug 29, 2019 · 2 comments
Closed

Address book controller chainId potentially misleading #150

rekmarks opened this issue Aug 29, 2019 · 2 comments

Comments

@rekmarks
Copy link
Member

rekmarks commented Aug 29, 2019

Address book entries are defined as:

interface AddressBookEntry {
  address: string;
  name: string;
  chainId: number;
  memo: string;
}

This leads us to believe that, perhaps, the user should be able to have entries with identical address fields and different chainId fields.

However, we store AddressBookEntrys by normalized addresses, and we normalize the address using toChecksumAddress(address), which returns the same address regardless of the chainId.

According to the ethereumjs-util documentation, we can add the chainId as an optional parameter to generate unique checksummed addresses by chainId. It appears they have yet to publish this version of the library, however, see: ethereumjs/ethereumjs-util#218

Question: if we compute checksummed addresses with chainId, can we still use those addresses directly for sending transactions? In other words, will they be different from what's currently displayed in the UI?

@jennypollack jennypollack self-assigned this Aug 30, 2019
@jennypollack
Copy link
Contributor

will they be different from what's currently displayed in the UI?

based on the spec of 1191, https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1191.md

This proposal is fully backward compatible. The checksum calculation is changed only for new networks that choose to adopt this EIP and add their chain numbers to the Adoption Table included in this document.

if a network chooses to add itself to the adoption table we would have a problem, but for now I think we're safe to continue as we are, as the current prioritized networks (arguably anything hard coded in our config) are not using this specification
(sidenote for the chainIds in the adoption table we currently are not supporting this)

@Gudahtt
Copy link
Member

Gudahtt commented May 5, 2021

This was fixed in #152

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

No branches or pull requests

3 participants