fix verification stores 🐛

This commit is contained in:
Jannis R 2016-12-15 18:09:52 +01:00
parent eb90d70be1
commit 0e963da27b
No known key found for this signature in database
GPG Key ID: 0FE83946296A88A5
3 changed files with 4 additions and 4 deletions

View File

@ -54,7 +54,7 @@ export default class EmailVerificationStore extends VerificationStore {
} }
constructor (api, account, isTestnet) { constructor (api, account, isTestnet) {
super(api, EmailVerificationABI, 'emailverification3', account, isTestnet); super(api, EmailVerificationABI, 4, account, isTestnet);
} }
requestValues = () => [ sha3(this.email) ] requestValues = () => [ sha3(this.email) ]

View File

@ -53,7 +53,7 @@ export default class SMSVerificationStore extends VerificationStore {
} }
constructor (api, account, isTestnet) { constructor (api, account, isTestnet) {
super(api, SMSVerificationABI, 'smsverification', account, isTestnet); super(api, SMSVerificationABI, 0, account, isTestnet);
} }
@action setNumber = (number) => { @action setNumber = (number) => {

View File

@ -46,13 +46,13 @@ export default class VerificationStore {
@observable isCodeValid = null; @observable isCodeValid = null;
@observable confirmationTx = null; @observable confirmationTx = null;
constructor (api, abi, name, account, isTestnet) { constructor (api, abi, certifierId, account, isTestnet) {
this.api = api; this.api = api;
this.account = account; this.account = account;
this.isTestnet = isTestnet; this.isTestnet = isTestnet;
this.step = LOADING; this.step = LOADING;
Contracts.get().badgeReg.fetchCertifier(name) Contracts.get().badgeReg.fetchCertifier(certifierId)
.then(({ address }) => { .then(({ address }) => {
this.contract = new Contract(api, abi).at(address); this.contract = new Contract(api, abi).at(address);
this.load(); this.load();