store certifier index in constant
This commit is contained in:
parent
7fdcc70825
commit
d2962fe47b
@ -23,6 +23,8 @@ import VerificationStore, {
|
||||
} from './store';
|
||||
import { postToServer } from '../../3rdparty/email-verification';
|
||||
|
||||
const EMAIL_VERIFICATION = 4; // id in the `BadgeReg.sol` contract
|
||||
|
||||
export default class EmailVerificationStore extends VerificationStore {
|
||||
@observable email = '';
|
||||
|
||||
@ -54,7 +56,7 @@ export default class EmailVerificationStore extends VerificationStore {
|
||||
}
|
||||
|
||||
constructor (api, account, isTestnet) {
|
||||
super(api, EmailVerificationABI, 4, account, isTestnet);
|
||||
super(api, EmailVerificationABI, EMAIL_VERIFICATION, account, isTestnet);
|
||||
}
|
||||
|
||||
requestValues = () => [ sha3(this.email) ]
|
||||
|
@ -23,6 +23,8 @@ import VerificationStore, {
|
||||
} from './store';
|
||||
import { postToServer } from '../../3rdparty/sms-verification';
|
||||
|
||||
const SMS_VERIFICATION = 0; // id in the `BadgeReg.sol` contract
|
||||
|
||||
export default class SMSVerificationStore extends VerificationStore {
|
||||
@observable number = '';
|
||||
|
||||
@ -53,7 +55,7 @@ export default class SMSVerificationStore extends VerificationStore {
|
||||
}
|
||||
|
||||
constructor (api, account, isTestnet) {
|
||||
super(api, SMSVerificationABI, 0, account, isTestnet);
|
||||
super(api, SMSVerificationABI, SMS_VERIFICATION, account, isTestnet);
|
||||
}
|
||||
|
||||
@action setNumber = (number) => {
|
||||
|
Loading…
Reference in New Issue
Block a user