make SMS verification contract general purpose
This commit is contained in:
parent
2d6656fc43
commit
600a7e5ccc
@ -19,7 +19,7 @@ import Registry from './registry';
|
||||
import SignatureReg from './signaturereg';
|
||||
import TokenReg from './tokenreg';
|
||||
import GithubHint from './githubhint';
|
||||
import * as smsVerification from './sms-verification';
|
||||
import * as verification from './verification';
|
||||
import BadgeReg from './badgereg';
|
||||
|
||||
let instance = null;
|
||||
@ -58,7 +58,10 @@ export default class Contracts {
|
||||
}
|
||||
|
||||
get smsVerification () {
|
||||
return smsVerification;
|
||||
return verification;
|
||||
}
|
||||
get emailVerification () {
|
||||
return verification;
|
||||
}
|
||||
|
||||
static create (api) {
|
||||
|
@ -20,7 +20,7 @@ import { sha3 } from '~/api/util/sha3';
|
||||
|
||||
import Contracts from '~/contracts';
|
||||
|
||||
import { checkIfVerified, checkIfRequested, awaitPuzzle } from '~/contracts/sms-verification';
|
||||
import { checkIfVerified, checkIfRequested, awaitPuzzle } from '~/contracts/verification';
|
||||
import { postToServer } from '../../3rdparty/sms-verification';
|
||||
import checkIfTxFailed from '../../util/check-if-tx-failed';
|
||||
import waitForConfirmations from '../../util/wait-for-block-confirmations';
|
||||
|
Loading…
Reference in New Issue
Block a user