-
Notifications
You must be signed in to change notification settings - Fork 1.7k
verification: add mainnet BadgeReg ids #4190
Conversation
@@ -23,7 +23,9 @@ import VerificationStore, { | |||
} from './store'; | |||
import { isServerRunning, postToServer } from '../../3rdparty/email-verification'; | |||
|
|||
const EMAIL_VERIFICATION = 7; // id in the `BadgeReg.sol` contract | |||
// ids in the `BadgeReg.sol` contract | |||
const TESTNET_EMAIL_VERIFICATION = 7; |
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.
This really is dangerous. It means that we need to do code upgrades when we deploy a new version and re-register. The code should just be able to get the info from the network, not via hard-coded ids.
In addition, if we have to deploy the BadgeReg on e.g. ETC we would need to come back here.
I don't have a much better idea since I'm not 100% familiar with what is available, but there must be other solutions instead of relying on certain order in deployments.
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.
Will try to work it out using BadgeReg.sol
.
A much cleaner implementation as to the original coded Ids. |
* verification: mainnet BadgeReg ids * verification: fetch contracts by name * verification: better wording * typo * reregistered badges
* JsonRPC bump for IPC fix * Fixing etherscan price parsing (#4202) * Fixing etherscan price parsing * Handling all errors * Fixed --base-path on windows (#4193) * Fixed --base-path on windows * Add support for optional args with default text * Fixing minimal transaction queue price (#4204) * Fixing minimal transaction queue price * Fixing tests * verification: add mainnet BadgeReg ids (#4190) * verification: mainnet BadgeReg ids * verification: fetch contracts by name * verification: better wording * typo * reregistered badges * Console now has admin (#4220) Fixes #4210 * Non-secure for DappReg (#4216)
They were
ropsten
-specific before. Not sure if this is the best place to store them.