format-fix
This commit is contained in:
parent
d94a4f6efc
commit
675d4c300b
|
@ -297,12 +297,14 @@ describe('.toV3()', function() {
|
||||||
p: p,
|
p: p,
|
||||||
})
|
})
|
||||||
|
|
||||||
const encFixtureEthersWallet = (await fixtureEthersWallet.encrypt(pw, {
|
const encFixtureEthersWallet = (
|
||||||
scrypt: { N: n, r: r, p: p },
|
await fixtureEthersWallet.encrypt(pw, {
|
||||||
salt: ethersOpts.salt,
|
scrypt: { N: n, r: r, p: p },
|
||||||
iv: ethersOpts.iv,
|
salt: ethersOpts.salt,
|
||||||
uuid: ethersOpts.uuid,
|
iv: ethersOpts.iv,
|
||||||
})).toLowerCase()
|
uuid: ethersOpts.uuid,
|
||||||
|
})
|
||||||
|
).toLowerCase()
|
||||||
|
|
||||||
const encRandomWallet = wRandom.toV3String(pw, {
|
const encRandomWallet = wRandom.toV3String(pw, {
|
||||||
kdf: 'scrypt',
|
kdf: 'scrypt',
|
||||||
|
@ -314,12 +316,14 @@ describe('.toV3()', function() {
|
||||||
p: p,
|
p: p,
|
||||||
})
|
})
|
||||||
|
|
||||||
const encEthersWallet = (await wEthers.encrypt(pw, {
|
const encEthersWallet = (
|
||||||
scrypt: { N: n, r: r, p: p },
|
await wEthers.encrypt(pw, {
|
||||||
salt: ethersOpts.salt,
|
scrypt: { N: n, r: r, p: p },
|
||||||
iv: ethersOpts.iv,
|
salt: ethersOpts.salt,
|
||||||
uuid: ethersOpts.uuid,
|
iv: ethersOpts.iv,
|
||||||
})).toLowerCase()
|
uuid: ethersOpts.uuid,
|
||||||
|
})
|
||||||
|
).toLowerCase()
|
||||||
|
|
||||||
assert.deepStrictEqual(JSON.parse(wStatic), JSON.parse(encFixtureWallet))
|
assert.deepStrictEqual(JSON.parse(wStatic), JSON.parse(encFixtureWallet))
|
||||||
assert.deepStrictEqual(JSON.parse(wStatic), JSON.parse(encFixtureEthersWallet))
|
assert.deepStrictEqual(JSON.parse(wStatic), JSON.parse(encFixtureEthersWallet))
|
||||||
|
|
Loading…
Reference in New Issue