Fix invalid props (#4766)
This commit is contained in:
parent
d68ea777a2
commit
5a7cbb3e5b
@ -46,7 +46,7 @@ export default class VerificationStore {
|
|||||||
@observable consentGiven = false;
|
@observable consentGiven = false;
|
||||||
@observable requestTx = null;
|
@observable requestTx = null;
|
||||||
@observable code = '';
|
@observable code = '';
|
||||||
@observable isCodeValid = null;
|
@observable isCodeValid = false;
|
||||||
@observable confirmationTx = null;
|
@observable confirmationTx = null;
|
||||||
|
|
||||||
constructor (api, abi, certifierName, account, isTestnet) {
|
constructor (api, abi, certifierName, account, isTestnet) {
|
||||||
@ -144,7 +144,7 @@ export default class VerificationStore {
|
|||||||
const values = [ sha3.text(code) ];
|
const values = [ sha3.text(code) ];
|
||||||
|
|
||||||
this.code = code;
|
this.code = code;
|
||||||
this.isCodeValid = null;
|
this.isCodeValid = false;
|
||||||
confirm.estimateGas(options, values)
|
confirm.estimateGas(options, values)
|
||||||
.then((gas) => {
|
.then((gas) => {
|
||||||
options.gas = gas.mul(1.2).toFixed(0);
|
options.gas = gas.mul(1.2).toFixed(0);
|
||||||
|
Loading…
Reference in New Issue
Block a user