Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

refactor: uses lowercased addresses to interact with the server #674

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

itofarina
Copy link
Contributor

@itofarina itofarina commented May 7, 2021

  • Sends and expects lowercased addresses when interacting with the server
  • Applies checksum format for all addresses that are shown to users

@itofarina itofarina changed the title WIP - lowercasing addresses to match server refactor: uses lowercased addresses to interact with the server May 11, 2021
@itofarina itofarina force-pushed the refactor/lowercaseAddresses branch from ae83631 to 75e778a Compare May 11, 2021 20:26
* @param {string} address
* @param {string} network
*/
toChecksumAddressIfNeeded(address, network) {
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 function should receive the networkId that would be used to apply checksum format

} = this.state;

const fromChecksum = common.toChecksumAddressIfNeeded(from, chain);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We only have the chain name here, would be best to get and send networkId for checksum format check

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.

1 participant