diff --git a/initfile.json b/initfile.json new file mode 100644 index 0000000..07362ac --- /dev/null +++ b/initfile.json @@ -0,0 +1,12 @@ +{ + "raffle": { + "contractName": "Raffle", + "contractFilename": "contracts/Raffle.sol", + "args": { + "_name": "New", + "_ticketCount": 5, + "_ticketPrice": 50, + "_charityPercentage": 60 + } + } +} \ No newline at end of file diff --git a/package.json b/package.json index 9470cdf..d036bc2 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ "scripts": { "start": "npm-run-all -p watch-css start-js", "start-js": "react-scripts start", - "build": "npm run build-css && react-scripts build && mkdir package && mkdir package/contracts && node scripts/create-metadata.js && mv build/* package/ && cd package && zip -r app.zip * && cd .. && rm -rf build && mv package build", + "build": "npm run build-css && react-scripts build && node scripts/create-metadata.js && cp -r lib/lottery/contracts ./build/ && cp initfile.json ./build/ && zip -r app.zip build/*", "test": "react-scripts test --env=jsdom", "eject": "react-scripts eject", "build-css": "node-sass-chokidar src/ -o src/", diff --git a/public/index.html b/public/index.html index 2e47286..81c5edb 100644 --- a/public/index.html +++ b/public/index.html @@ -14,7 +14,7 @@ - +