Skip to content

Commit

Permalink
Merge pull request #71 from onflow/Aliserag-Staging-Vid-Add
Browse files Browse the repository at this point in the history
add Jacob Tucker's staging video to staging guide
  • Loading branch information
Aliserag committed Mar 18, 2024
2 parents 876d3fb + 344e6ef commit f927cef
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions docs/cadence_migration_guide/staging-guide.mdx
Expand Up @@ -17,10 +17,20 @@ This guide aims to simplify the migration process to Cadence 1.0, making it acce

## Staging a contract

<iframe
width="560"
height="315"
src="https://www.youtube.com/embed/vhdP1kv_Ooc"
title="YouTube video player"
frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen
></iframe>

In order to migrate your updated smart contract to Cadence 1.0, it's crucial to stage it on the Testnet network. This preliminary step not only verifies the contract's compatibility and syntactical correctness but also ensures a seamless transition to the new environment.

```bash
flow migrate stage-contract HelloWorld --network=testnet
flow-c1 migrate stage-contract HelloWorld --network=testnet
```

Ensure that HelloWorld accurately reflects the name of your contract as specified in your flow.json configuration file.
Expand All @@ -30,7 +40,7 @@ Ensure that HelloWorld accurately reflects the name of your contract as specifie
To confirm that your contract is ready for migration and has been successfully staged, execute the following command:

```bash
flow migrate is-staged HelloWorld --network=testnet
flow-c1 migrate is-staged HelloWorld --network=testnet
```

A response of true indicates that your contract has been approved by the Flow Blockchain Testnet network and is ready for the migration process.

0 comments on commit f927cef

Please sign in to comment.