From 0ccc7c036e9b9fb3359eadef662631124deab33e Mon Sep 17 00:00:00 2001 From: Michael FIG Date: Sat, 2 Nov 2019 23:42:24 -0700 Subject: [PATCH] fix(dapp): make autoswap the default --- template/contract/deploy-autoswap.js | 3 --- template/contract/deploy-myfirstdapp.js | 3 +++ template/contract/deploy.js | 3 ++- 3 files changed, 5 insertions(+), 4 deletions(-) delete mode 100644 template/contract/deploy-autoswap.js create mode 100644 template/contract/deploy-myfirstdapp.js diff --git a/template/contract/deploy-autoswap.js b/template/contract/deploy-autoswap.js deleted file mode 100644 index e7509507488..00000000000 --- a/template/contract/deploy-autoswap.js +++ /dev/null @@ -1,3 +0,0 @@ -import deployContract from './deploy'; - -export default (homeP, priv) => deployContract(homeP, priv, 'autoswap'); diff --git a/template/contract/deploy-myfirstdapp.js b/template/contract/deploy-myfirstdapp.js new file mode 100644 index 00000000000..7a66a379591 --- /dev/null +++ b/template/contract/deploy-myfirstdapp.js @@ -0,0 +1,3 @@ +import deployContract from './deploy'; + +export default (homeP, priv) => deployContract(homeP, priv, 'myFirstDapp'); diff --git a/template/contract/deploy.js b/template/contract/deploy.js index dbd5c24dfa9..b9add444d8a 100644 --- a/template/contract/deploy.js +++ b/template/contract/deploy.js @@ -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`);