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

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

transactionState, transactionId, amount, dateTime, memo, confirmations, title, stateIcon, isRefreshing, from, to, chain,
} = 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.

2 participants