Skip to content
This repository has been archived by the owner on Jul 9, 2021. It is now read-only.

[Issue #1945] Downcase address comparison in private_key_wallet.ts in subproviders module. #1962

Closed
wants to merge 3 commits into from

Conversation

bstchow
Copy link
Contributor

@bstchow bstchow commented Jul 16, 2019

Description

Downcase the initialized address of the private key wallet subprovider before comparing it with a signed transaction's origin address before comparing the two addresses to check for equality.

Testing instructions

  1. Instantiate a PrivateKeyWallet with any private key
  2. Call signTransactionAsync with input txParams where txParams.from is assigned a checksummed address which matches the private key provided the PrivateKeyWallet.
  3. The transaction should complete without any errors.

Types of changes

Fixes defective behavior described in Issue #1945 as per direction from @dekz.

Checklist:

  • Add tests to cover changes as needed.
  • Add new entries to the relevant CHANGELOG.jsons.

@bstchow bstchow requested review from dekz and fabioberger as code owners July 16, 2019 01:26
bstchow added 2 commits July 15, 2019 18:33
…hen calling signTransactionAsync in the private key subprovider
@bstchow bstchow changed the title [WIP][Issue #1945] Downcase address comparison in private_key_wallet.ts in subproviders module. [Issue #1945] Downcase address comparison in private_key_wallet.ts in subproviders module. Jul 16, 2019
Copy link
Member

@dekz dekz left a comment

Choose a reason for hiding this comment

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

@bstchow thanks so much for opening this PR. One little removal and we'll get this in asap.

You'll also need to run yarn prettier in the top level directory to get the build passing.

"pr": 1962
}
],
"timestamp": 1563240294
Copy link
Member

Choose a reason for hiding this comment

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

can you delete this line, this is auto created when published.

…matically added) and run 'yarn prettier' to format changes.
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