fix verification stores 🐛
This commit is contained in:
parent
eb90d70be1
commit
0e963da27b
@ -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) ]
|
||||||
|
@ -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) => {
|
||||||
|
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user