hyperledger-cacti / cacti

Hyperledger Cacti is a new approach to the blockchain interoperability problem
https://wiki.hyperledger.org/display/cactus
Apache License 2.0
344 stars 286 forks source link

fix(test-tooling): use of hardcoded password #3428

Closed ashnashahgrover closed 1 month ago

ashnashahgrover commented 4 months ago

Commit to be reviewed


fix(test-tooling): use of hardcoded password

Primary Changes
----------------
1. BREAKING CHANGE: "password" is now a mandatory parameter of the newEthPersonalAccount function
defined in openethereum-test-ledger.ts. It was previously optional.
2. Updated line 236 in openethereum-test-ledger.ts so the default password argument to the
newEthPersonalAccount function is not hardcoded.

Fixes #2766

Pull Request Requirements

Character Limit

A Must Read for Beginners For rebasing and squashing, here's a must read guide for beginners.

ashnashahgrover commented 4 months ago

Did you verify if the test cases requiring this piece of code clearly specifies test as the password?

@jagpreetsinghsasan There are no test cases in the repo using this code/function

ashnashahgrover commented 3 months ago

@ashnashahgrover Please fix the commit lint issues and document that it's a breaking change in the commit message (which then will get recognized by the change log and put in the release notes). You can find the expected format for breaking changes in the conventional commit messages standard.

@petermetz I have addressed these requests.

ashnashahgrover commented 3 months ago

@ashnashahgrover The breaking change is that you made a previously optional parameter of the function mandatory. It doesn't refer to line breaks in text (although those can be important too because the commit linter will fail that as well). Please refactor the PR description/commit message accordingly.

Have adjusted both the commit message and PR description accordingly.

jagpreetsinghsasan commented 3 months ago

@ashnashahgrover The breaking change is that you made a previously optional parameter of the function mandatory. It doesn't refer to line breaks in text (although those can be important too because the commit linter will fail that as well). Please refactor the PR description/commit message accordingly.

Have adjusted both the commit message and PR description accordingly.

No it isn't updated @ashnashahgrover

CURRENT PR BODY (Breaking changes going out of the primary changes section) image

CURRENT COMMIT MESSAGE (Breaking changes are after the fixes tag) image

petermetz commented 1 month ago

Currently this one is stuck because of a pending change request from @jagpreetsinghsasan

@ashnashahgrover In case you didn't re-request review from @jagpreetsinghsasan , please do that. @jagpreetsinghsasan If there was a re-request review then please re-review when you get the chance so that we can move this along.

I'm not sure either way where did this one get stuck, but either which way let's get in moving!