Skip to content
This repository has been archived by the owner on Dec 12, 2019. It is now read-only.

Commit

Permalink
Merge pull request #3 from Holo-Host/expected-hash
Browse files Browse the repository at this point in the history
Use new expected_hash param when installing DNA
  • Loading branch information
maackle authored Mar 8, 2019
2 parents 9ac41f6 + 9b374f6 commit bdb177a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/flows/install-happ.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export const installDnasAndUi = async (client, {happId}) => {
return client.call('admin/dna/install_from_file', {
id: dnaId,
path: dna.path,
expected_hash: dna.hash,
copy: false,
})
})
Expand Down
4 changes: 2 additions & 2 deletions src/shims/happ-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ export const HAPP_DATABASE = {
dnas: [
{
location: 'http://localhost:3333/simple-app/dist/simple-app.dna.json',
hash: 'Qm_DNA_Simple_App'
hash: 'QmSKxN3FGVrf1vVMav6gohJVi7GcF4jFcKVDhDcjiAnveo'
}
],
ui: {
location: 'http://localhost:3333/simple-app/ui.tar',
hash: 'Qm_UI_Simple_App'
hash: 'Qm_UI_Simple_App_TODO'
},
},
'holo-hosting': {
Expand Down

0 comments on commit bdb177a

Please sign in to comment.