8000 Changed the way we deploy in Vercel · jscriptcoder/lottery-contract@10aa054 · GitHub
[go: up one dir, main page]

Skip to content

Commit 10aa054

Browse files
committed
Changed the way we deploy in Vercel
1 parent e3e8890 commit 10aa054

File tree

5 files changed

+8031
-6
lines changed

5 files changed

+8031
-6
lines changed

components/ConnectButton/useConnectButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { useAppContext } from '../../context/appStore'
44
import {
55
getContractDetails,
66
requestAccounts,
7-
} from '../../utils/lotteryContract'
7+
} from '../../utils/lottery/contract'
88

99
function notifySuccessfulConnection(balance: string): void {
1010
notification.success({

components/Content/useContent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {
1515
getContractDetails,
1616
pickWinner,
1717
web3,
18-
} from '../../utils/lotteryContract'
18+
} from '../../utils/lottery/contract'
1919
import { toPrice } from '../../utils/numeral'
2020
import type { Winner } from '../WinnerMask/WinnerMask'
2121

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,16 @@
55
"scripts": {
66
"generate-types": "typechain --t 9397 arget=truffle-v5 'build/contracts/*.json'",
77
"tsc-migrate": "tsc -p ./tsconfig.migrate.json --outDir ./migrations",
8+
"contract-json": "cp ./build/contracts/Lottery.json ./utils/lottery/contract.json",
89
"premigrate": "npm run tsc-migrate",
910
"migrate": "truffle migrate",
11+
"postmigrate": "npm run contract-json",
1012
"premigrate-goerli": "npm run tsc-migrate",
1113
"migrate-goerli": "truffle migrate --network goerli",
14+
"postmigrate-goerli": "npm run contract-json",
1215
"typecheck": "truffle compile && npm run generate-types && tsc --noEmit",
1316
"dev": "next dev",
1417
"build": "next build",
15-
"premigrate-build": "npm run migrate-goerli",
16-
"migrate-build": "next build",
1718
"start": "next start",
1819
"lint": "next lint",
1920
"test": "truffle test"

0 commit comments

Comments
 (0)
0