Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

verification: add mainnet BadgeReg ids #4190

Merged
merged 6 commits into from
Jan 19, 2017
Merged

Conversation

derhuerst
Copy link
Contributor

They were ropsten-specific before. Not sure if this is the best place to store them.

@derhuerst derhuerst added A0-pleasereview 🤓 Pull request needs code review. M7-ui A8-backport 🕸 Pull request is already reviewed well in another branch. labels Jan 17, 2017
@rphmeier rphmeier added B0-patch and removed A8-backport 🕸 Pull request is already reviewed well in another branch. labels Jan 17, 2017
@@ -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;
Copy link
Contributor

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.

Copy link
Contributor Author

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.

@jacogr jacogr added A5-grumble 🔥 Pull request has minor issues that must be addressed before merging. and removed A0-pleasereview 🤓 Pull request needs code review. labels Jan 18, 2017
@derhuerst derhuerst added A3-inprogress ⏳ Pull request is in progress. No review needed at this stage. and removed A5-grumble 🔥 Pull request has minor issues that must be addressed before merging. labels Jan 18, 2017
@derhuerst derhuerst added A0-pleasereview 🤓 Pull request needs code review. and removed A3-inprogress ⏳ Pull request is in progress. No review needed at this stage. labels Jan 18, 2017
@gavofyork gavofyork added the P2-asap 🌊 No need to stop dead in your tracks, however issue should be addressed as soon as possible. label Jan 19, 2017
@jacogr jacogr added A8-looksgood 🦄 Pull request is reviewed well. and removed A0-pleasereview 🤓 Pull request needs code review. labels Jan 19, 2017
@jacogr
Copy link
Contributor

jacogr commented Jan 19, 2017

A much cleaner implementation as to the original coded Ids.

@gavofyork gavofyork merged commit b903195 into master Jan 19, 2017
@gavofyork gavofyork deleted the jr-mainnet-verification branch January 19, 2017 07:45
arkpar pushed a commit that referenced this pull request Jan 19, 2017
* verification: mainnet BadgeReg ids

* verification: fetch contracts by name

* verification: better wording

* typo

* reregistered badges
arkpar added a commit that referenced this pull request Jan 19, 2017
* 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)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A8-looksgood 🦄 Pull request is reviewed well. P2-asap 🌊 No need to stop dead in your tracks, however issue should be addressed as soon as possible.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants