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

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

Merged
merged 3 commits into from
Jul 18, 2019

Conversation

bstchow
Copy link
Contributor

@bstchow bstchow commented Jul 17, 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.

Resubmitted version of PR #1962 with proper Circle-CI and Code Coveralls configuration.

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:

  • Prefix PR title with [WIP] if necessary.
  • Add tests to cover changes as needed.
  • Add new entries to the relevant CHANGELOG.jsons.

bstchow added 3 commits July 15, 2019 18:33
…hen calling signTransactionAsync in the private key subprovider
…matically added) and run 'yarn prettier' to format changes.
@bstchow bstchow requested review from dekz and fabioberger as code owners July 17, 2019 20:16
@dekz dekz merged commit 1aeea39 into 0xProject:development Jul 18, 2019
@dekz
Copy link
Member

dekz commented Jul 18, 2019

thanks so much @bstchow

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