fix additional flow errors (#113)

This commit is contained in:
Daniel Ternyak 2017-08-09 15:26:35 +02:00 committed by GitHub
parent 30f2d854d6
commit c594619acd
2 changed files with 2 additions and 2 deletions

View File

@ -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]);

View File

@ -24,7 +24,7 @@ type State = {
orderTimestampCreatedISOString: ?string,
paymentAddress: ?string,
validFor: ?number,
orderId: string
orderId: ?string
};
export const INITIAL_STATE: State = {