Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make sure to always truncate the file when writing (#200)
The append action fully rewrites the file, so we should open in truncate mode in this case as well. <!--- Thanks for contributing to NanoLedger! Make sure all GitHub actions (test, lint & build) will pass and fill out the template. If any changes to your PR are necessary, we will ask for them throughout the review process. ---> <!--- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. If your pull request includes visual changes (which will probably be the case for anything that isn't a pure logic fix), please include screenshots showing those changes. ---> Fixes #197. <!--- If you did any manual testing (please do so), describe here what you tested and how. Provide instructions so that your tests can be easily run again by a maintainer. --->
- Loading branch information