-
Notifications
You must be signed in to change notification settings - Fork 2
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
Conversation
544c78a
to
968ecf2
Compare
lib/2wp-utils.js
Outdated
const latestActiveForkName = await getLatestActiveForkName(); | ||
const bridge = getBridge(rskTxHelper.getClient(), latestActiveForkName); | ||
|
||
const addr = await rskTxHelper.importAccount(WHITELIST_CHANGE_PK) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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'; |
There was a problem hiding this comment.
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
.
There was a problem hiding this comment.
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?
968ecf2
to
2f25bd4
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
No description provided.