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 SignatureReg from './signaturereg';
|
||||||
import TokenReg from './tokenreg';
|
import TokenReg from './tokenreg';
|
||||||
import GithubHint from './githubhint';
|
import GithubHint from './githubhint';
|
||||||
import * as smsVerification from './sms-verification';
|
import * as verification from './verification';
|
||||||
import BadgeReg from './badgereg';
|
import BadgeReg from './badgereg';
|
||||||
|
|
||||||
let instance = null;
|
let instance = null;
|
||||||
@ -58,7 +58,10 @@ export default class Contracts {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get smsVerification () {
|
get smsVerification () {
|
||||||
return smsVerification;
|
return verification;
|
||||||
|
}
|
||||||
|
get emailVerification () {
|
||||||
|
return verification;
|
||||||
}
|
}
|
||||||
|
|
||||||
static create (api) {
|
static create (api) {
|
||||||
|
@ -20,7 +20,7 @@ import { sha3 } from '~/api/util/sha3';
|
|||||||
|
|
||||||
import Contracts from '~/contracts';
|
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 { postToServer } from '../../3rdparty/sms-verification';
|
||||||
import checkIfTxFailed from '../../util/check-if-tx-failed';
|
import checkIfTxFailed from '../../util/check-if-tx-failed';
|
||||||
import waitForConfirmations from '../../util/wait-for-block-confirmations';
|
import waitForConfirmations from '../../util/wait-for-block-confirmations';
|
||||||
|
Loading…
Reference in New Issue
Block a user