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

Fabo/1791 fix voyager init #1794

Merged
merged 5 commits into from
Jan 4, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- [\#1572](https://github.com/cosmos/voyager/issues/1572) Fixed scroll bug when switching between tabs @jbibla
- [\#1749](https://github.com/cosmos/voyager/issues/1749) Fixed proposal tally update after voting @fedekunze
- [\#1765](https://github.com/cosmos/voyager/pull/1765) Fixed proposal deposit update after submitting a deposit @fedekunze
- [\#1791](https://github.com/cosmos/voyager/pull/1791) Fixed a problem with initializing the Voyager config dir @faboweb

## [0.10.7] - 2018-10-10

Expand Down
13 changes: 12 additions & 1 deletion app/src/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,18 @@ async function main() {

// copy predefined genesis.json and config.toml into root
fs.accessSync(networkPath) // crash if invalid path
fs.copySync(networkPath, root)
await fs.copyFile(
join(networkPath, `config.toml`),
join(root, `config.toml`)
)
await fs.copyFile(
join(networkPath, `gaiaversion.txt`),
join(root, `gaiaversion.txt`)
)
await fs.copyFile(
join(networkPath, `genesis.json`),
join(root, `genesis.json`)
)

fs.writeFileSync(appVersionPath, pkgVersion)
}
Expand Down
1 change: 1 addition & 0 deletions test/unit/helpers/fs-mock.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export default function mockFsExtra(fileSystem = {}) {
}
create(to, fsExtraMock.fs, file)
},
copyFile: (from, to) => fsExtraMock.copy(from, to),
ensureFile: path => {
let { file } = get(path, fsExtraMock.fs)
if (file === null) {
Expand Down