Skip to content

fix: remove 0x by regex in Account.fromPrivate#9

Open
Keith-CY wants to merge 1 commit into
VictorTaelin:masterfrom
Keith-CY:fix/fix-account-from-private-key
Open

fix: remove 0x by regex in Account.fromPrivate#9
Keith-CY wants to merge 1 commit into
VictorTaelin:masterfrom
Keith-CY:fix/fix-account-from-private-key

Conversation

@Keith-CY

Copy link
Copy Markdown

Account.fromPrivate will return different accounts when private key is passed with or without '0x'.
This PR removes '0x' from private key with regex in Account.fromPrivate.

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

Successfully merging this pull request may close these issues.

1 participant