Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: read current password when constructing v3 wallet #261

Merged
merged 2 commits into from
Sep 9, 2022

Conversation

Cafe137
Copy link
Collaborator

@Cafe137 Cafe137 commented Sep 7, 2022

Extracted password reading into a utility function.

Fixed tests, we only had one but that was outdated and did not run either. Would like to reintroduce testing our modules.

@Cafe137 Cafe137 marked this pull request as ready for review September 9, 2022 08:33
@Cafe137 Cafe137 linked an issue Sep 9, 2022 that may be closed by this pull request
Copy link
Contributor

@AuHau AuHau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome work on tests! Thanks :-)

@@ -29,7 +29,7 @@
"lint": "eslint --fix \"src/**/*.ts\" && cd ui && npm run lint",
"lint:check": "eslint \"src/**/*.ts\" && cd ui && npm run lint:check",
"check:types": "tsc --project tsconfig.test.json && cd ui && tsc --project tsconfig.test.json",
"test:unit": "jest --verbose -config=jest.config.ts "
"test:unit": "jest --verbose --config=jest.config.js"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@@ -0,0 +1,46 @@
import { existsSync, unlinkSync, writeFileSync } from 'fs-extra'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Swap endpoint does not work with generated password
2 participants