Skip to content

Commit

Permalink
Fix address and contract name for example (#689)
Browse files Browse the repository at this point in the history
* Fix address and contract name for example

* Update docs/tools/flow-cli/dependency-manager.md

Co-authored-by: Jordan Ribbink <jribbink@users.noreply.github.com>

---------

Co-authored-by: Chase Fleming <1666730+chasefleming@users.noreply.github.com>
Co-authored-by: Jordan Ribbink <jribbink@users.noreply.github.com>
  • Loading branch information
3 people authored Mar 26, 2024
1 parent 06f0902 commit e9f7b14
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/tools/flow-cli/dependency-manager.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ For example, suppose you wanted to build a new application using the `FlowToken`

If you know the address and name of the contract you want to install (this can usually be found easily in the [Contract Browser](https://contractbrowser.com/)), you can install the dependency and all its dependencies with a single CLI command, as shown below (using FlowToken as an example):

`flow dependencies add testnet://0afe396ebc8eee65.FlowToken`
`flow dependencies add testnet://7e60df042a9c0868.FlowToken`

> Note: You can also use the shorthand `deps`
>
In this command, the string that will be used as the `source` in the `flow.json` after installation is `testnet://0afe396ebc8eee65.FLOAT`. This can be broken down into three sections for formatting it yourself for another contract:
In this command, the string that will be used as the `source` in the `flow.json` after installation is `testnet://7e60df042a9c0868.FlowToken`. This can be broken down into three sections for formatting it yourself for another contract:

- **Network**: `testnet`
- **Address**: `0ae53cb6e3f42a79`
- **Address**: `7e60df042a9c0868`
- **Contract Name**: `FlowToken`

This is the remote source of the contract on the network that will be used as the source of truth.
Expand All @@ -45,7 +45,7 @@ Or the extended format like this:
{
"dependencies": {
"FlowToken": {
"source": "emulator://0ae53cb6e3f42a79.FlowToken",
"source": "testnet://7e60df042a9c0868.FlowToken",
"aliases": {
"emulator": "0ae53cb6e3f42a79"
}
Expand Down

0 comments on commit e9f7b14

Please sign in to comment.