Skip to content

Commit

Permalink
Merge 68550b0 into 744a79d
Browse files Browse the repository at this point in the history
  • Loading branch information
holgerd77 committed Sep 15, 2020
2 parents 744a79d + 68550b0 commit bf07983
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 10 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,16 @@ jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [10.x, 12.x, 13.x, 14.x]
node-version: [10.x, 12.x, 13.x, 14.4.0, 14.5.0, 14.6.0, 14.7.0, 14.8.0, 14.9.0]
steps:
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- uses: actions/checkout@v1
- uses: actions/checkout@v2

- run: npm install
- run: npm run test
Expand All @@ -36,7 +37,7 @@ jobs:
with:
node-version: 12.x

- uses: actions/checkout@v1
- uses: actions/checkout@v2

- run: npm install
- run: npm run test:browser
Expand Down
2 changes: 1 addition & 1 deletion karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = function(config) {
reporters: ['progress', 'karma-typescript'],
browsers: ['FirefoxHeadless', 'ChromeHeadless'],
singleRun: true,
concurrency: Infinity,
concurrency: 1,
// Extend timeouts for long tests
browserDisconnectTimeout: 1000000,
browserNoActivityTimeout: 1000000,
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@
"@types/node": "^12.0.10",
"ethers": "^4.0.33",
"husky": "^2.1.0",
"karma": "^5.0.2",
"karma-chrome-launcher": "^2.0.0",
"karma-firefox-launcher": "^1.0.0",
"karma-mocha": "^2.0.0",
"karma-typescript": "^5.0.2",
"karma": "^5.2.2",
"karma-chrome-launcher": "^3.1.0",
"karma-firefox-launcher": "^1.3.0",
"karma-mocha": "^2.0.1",
"karma-typescript": "^5.1.0",
"lodash.zip": "^4.2.0",
"mocha": "^7.1.2",
"nyc": "^15.0.1",
Expand Down
4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,9 @@ export default class Wallet {
}

const ciphertext = runCipherBuffer(cipher, this.privKey)
const mac = keccak256(Buffer.concat([Buffer.from(derivedKey.slice(16, 32)), Buffer.from(ciphertext)]))
const mac = keccak256(
Buffer.concat([Buffer.from(derivedKey.slice(16, 32)), Buffer.from(ciphertext)]),
)

return {
version: 3,
Expand Down

0 comments on commit bf07983

Please sign in to comment.