Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy crypto contract #146

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,21 @@ Start the emulator and deploy the contracts by running the following command fro

```sh
flow emulator start
flow project deploy --network emulator
flow project deploy --network=emulator
```

## Start the dev wallet

```js
```bash
PORT=8701 npm run dev
```

You can also run the dev wallet and deploy the contracts with one command if your emulator is running:

```bash
PORT=8701 npm run dev:deploy
```

**Note:** The following variables should match the `emulator-account` defined in your project's `flow.json` file.
For details about `flow.json` visit the `flow-cli` [configuration reference](https://docs.onflow.org/flow-cli/configuration/).

Expand Down
142 changes: 0 additions & 142 deletions docs/overview.md

This file was deleted.

2 changes: 1 addition & 1 deletion flow.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
},
"deployments": {
"emulator": {
"emulator-account": ["FUSD"]
"emulator-account": ["FCLCrypto", "FUSD"]
}
}
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"license": "Apache-2.0",
"scripts": {
"dev": "APP_ENV=local next dev --port 8701",
"dev:deploy": "flow project deploy --network=emulator --update && npm run dev",
"build": "next build",
"start": "next start",
"lint": "eslint .",
Expand Down