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

disable whitelisting #12

Merged
merged 6 commits into from
Sep 29, 2023
Merged

disable whitelisting #12

merged 6 commits into from
Sep 29, 2023

Conversation

jpikora-iov
Copy link
Contributor

No description provided.

@jpikora-iov jpikora-iov requested a review from a team as a code owner September 27, 2023 09:17
@jpikora-iov jpikora-iov changed the title WIP - disable whitelisting disable whitelisting Sep 27, 2023
lib/2wp-utils.js Outdated Show resolved Hide resolved
lib/2wp-utils.js Outdated
const latestActiveForkName = await getLatestActiveForkName();
const bridge = getBridge(rskTxHelper.getClient(), latestActiveForkName);

const addr = await rskTxHelper.importAccount(WHITELIST_CHANGE_PK)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
const addr = await rskTxHelper.importAccount(WHITELIST_CHANGE_PK)
const whitelistChangeAddress = await rskTxHelper.importAccount(WHITELIST_CHANGE_PK)

lib/2wp-utils.js Outdated
@@ -15,6 +15,8 @@ const ADDRESS_TYPES_CODES = {
const BTC_TO_RSK_MINIMUM_CONFIRMATIONS = 3;
const TO_BRIDGE_GAS_PRICE = 2;
const BRIDGE_ADDRESS = '0x0000000000000000000000000000000001000006';
const WHITELIST_CHANGE_PK = '3890187a3071327cee08467ba1b44ed4c13adb2da0d5ffcc0563c371fa88259c';
const WHITELIST_CHANGE_ADDR = '87d2a0f33744929da08b65fd62b627ea52b25f8e';
Copy link
Contributor

Choose a reason for hiding this comment

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

These constants are already exported from the whitelisting.js file. Please, import them and use them here. No need to duplicate them.
Also check that they are redeclared again in 01_03_51-2wp_release_event.js and 01_03_52-disable_lock_whitelist.js. Delete them from there and import them on those files from whitelisting.js.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Should the method in it's entirety be moved to whitelisting.js? Or should it stay here? What do you think?

@sonarqubecloud
Copy link

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

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.

@jeremy-then jeremy-then merged commit 8ac1bb3 into main Sep 29, 2023
@jeremy-then jeremy-then deleted the disable-whitelist branch September 29, 2023 16:14
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.

3 participants