Skip to content

Commit

Permalink
fix(dapp): make autoswap the default
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfig committed Nov 3, 2019
1 parent de0c04f commit 0ccc7c0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 0 additions & 3 deletions template/contract/deploy-autoswap.js

This file was deleted.

3 changes: 3 additions & 0 deletions template/contract/deploy-myfirstdapp.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import deployContract from './deploy';

export default (homeP, priv) => deployContract(homeP, priv, 'myFirstDapp');
3 changes: 2 additions & 1 deletion template/contract/deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import harden from '@agoric/harden';

const DAPP_NAME = "@DIR@";

export default async function deployContract(homeP, { bundleSource, pathResolve }, CONTRACT_NAME = 'myFirstDapp') {
export default async function deployContract(homeP, { bundleSource, pathResolve },
CONTRACT_NAME = 'autoswap') {

// Create a source bundle for the "myFirstDapp" smart contract.
const { source, moduleFormat } = await bundleSource(`./${CONTRACT_NAME}.js`);
Expand Down

0 comments on commit 0ccc7c0

Please sign in to comment.