fix additional flow errors (#113)
This commit is contained in:
parent
30f2d854d6
commit
c594619acd
|
@ -117,7 +117,7 @@ export function fromV3KeystoreToPkey(input: string, password: string): Buffer {
|
|||
derivedKey.slice(0, 16),
|
||||
new Buffer(kstore.crypto.cipherparams.iv, 'hex')
|
||||
);
|
||||
let seed = decipherBuffer(decipher, ciphertext, 'hex');
|
||||
let seed = decipherBuffer(decipher, ciphertext);
|
||||
while (seed.length < 32) {
|
||||
let nullBuff = new Buffer([0x00]);
|
||||
seed = Buffer.concat([nullBuff, seed]);
|
||||
|
|
|
@ -24,7 +24,7 @@ type State = {
|
|||
orderTimestampCreatedISOString: ?string,
|
||||
paymentAddress: ?string,
|
||||
validFor: ?number,
|
||||
orderId: string
|
||||
orderId: ?string
|
||||
};
|
||||
|
||||
export const INITIAL_STATE: State = {
|
||||
|
|
Loading…
Reference in New Issue