fix bugs & linting issues
This commit is contained in:
parent
162420f4c2
commit
dfc445b6d6
@ -53,7 +53,7 @@ export default class EmailVerificationStore extends VerificationStore {
|
||||
}
|
||||
|
||||
constructor (api, account, isTestnet) {
|
||||
return super(api, account, isTestnet, 'emailverification');
|
||||
super(api, account, isTestnet, 'emailverification3');
|
||||
}
|
||||
|
||||
requestValues = () => [ sha3(this.email) ]
|
||||
@ -62,8 +62,6 @@ export default class EmailVerificationStore extends VerificationStore {
|
||||
this.email = email;
|
||||
}
|
||||
|
||||
requestValues = () => [ sha3(this.email) ]
|
||||
|
||||
requestCode = () => {
|
||||
const { email, account, isTestnet } = this;
|
||||
return postToServer({ email, address: account }, isTestnet);
|
||||
|
@ -52,7 +52,7 @@ export default class SMSVerificationStore extends VerificationStore {
|
||||
}
|
||||
|
||||
constructor (api, account, isTestnet) {
|
||||
return super(api, account, isTestnet, 'smsverification');
|
||||
super(api, account, isTestnet, 'smsverification');
|
||||
}
|
||||
|
||||
@action setNumber = (number) => {
|
||||
|
@ -52,7 +52,7 @@ export default class VerificationStore {
|
||||
this.isTestnet = isTestnet;
|
||||
|
||||
this.step = LOADING;
|
||||
Contracts.create(api).registry.getContract(name)
|
||||
Contracts.get().registry.getContract(name)
|
||||
.then((contract) => {
|
||||
this.contract = contract;
|
||||
this.load();
|
||||
|
@ -173,7 +173,7 @@ export default class Verification extends Component {
|
||||
|
||||
const {
|
||||
step,
|
||||
fee, number, isNumberValid, isVerified, hasRequested,
|
||||
fee, isVerified, hasRequested,
|
||||
requestTx, isCodeValid, confirmationTx,
|
||||
setCode
|
||||
} = this.props.store;
|
||||
@ -187,7 +187,7 @@ export default class Verification extends Component {
|
||||
case 2:
|
||||
const { setConsentGiven } = this.props.store;
|
||||
|
||||
const fields = []
|
||||
const fields = [];
|
||||
if (method === 'sms') {
|
||||
fields.push({
|
||||
key: 'number',
|
||||
|
Loading…
Reference in New Issue
Block a user