Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redeem script tests refactor #18

Closed
wants to merge 11 commits into from
Closed

Conversation

ed-iov
Copy link
Contributor

@ed-iov ed-iov commented Nov 9, 2023

This PR introduces 2 new tests that is repeating the test for 01_05_57-post_hop_active_powpeg_redeem_script.js into 2 new files
03_02_01-last_fork_active_powpeg_redeem_script.js - validates that in the last fork activation the redeem script is correct.
05_02_01-last_fork_active_powpeg_redeem_script.js - validates that in the last fork activation and a federation change the redeem script is correct for the new federation.

@ed-iov ed-iov marked this pull request as ready for review November 9, 2023 13:52
@ed-iov ed-iov requested a review from a team as a code owner November 9, 2023 13:52
Copy link
Contributor

@jeremy-then jeremy-then left a comment

Choose a reason for hiding this comment

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

Get rid of the peglib. We have better options instead of it. As a reference, check the 2wp.js file.

tests/03_02_01-last_fork_active_powpeg_redeem_script.js Outdated Show resolved Hide resolved
tests/03_02_01-last_fork_active_powpeg_redeem_script.js Outdated Show resolved Hide resolved
tests/05_02_01-last_fork_active_powpeg_redeem_script.js Outdated Show resolved Hide resolved
tests/03_02_01-last_fork_active_powpeg_redeem_script.js Outdated Show resolved Hide resolved
@ed-iov ed-iov requested a review from jeremy-then November 22, 2023 16:24
Copy link
Contributor

@jeremy-then jeremy-then left a comment

Choose a reason for hiding this comment

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

Left a couple of comments.

@ed-iov ed-iov requested a review from jeremy-then November 27, 2023 16:01
jeremy-then
jeremy-then previously approved these changes Dec 5, 2023
Copy link
Contributor

@jeremy-then jeremy-then left a comment

Choose a reason for hiding this comment

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

LGTM.

Copy link
Contributor

@nathanieliov nathanieliov left a comment

Choose a reason for hiding this comment

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

Well done Edgardo! LGTM. Just a suggestion.

tests/05_02_01-last_fork_active_powpeg_redeem_script.js Outdated Show resolved Hide resolved
Copy link
Contributor

@jeremy-then jeremy-then left a comment

Choose a reason for hiding this comment

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

LGTM.

Copy link
Contributor

@nathanieliov nathanieliov left a comment

Choose a reason for hiding this comment

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

LGTM

@ed-plutotv
Copy link

pipeline:run

@jeremy-then jeremy-then closed this Dec 8, 2023
@jeremy-then jeremy-then reopened this Dec 8, 2023
Copy link

sonarqubecloud bot commented Dec 8, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@jeremy-then jeremy-then closed this Dec 8, 2023
@jeremy-then jeremy-then deleted the redeem-script-tests-refactor branch December 8, 2023 15:10
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.

4 participants