-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update and rename deployAccountUDC example
- Loading branch information
1 parent
71e23a9
commit 587fa2f
Showing
7 changed files
with
195 additions
and
203 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
Note: To run this example, you need a testnet endpoint. | ||
|
||
Steps to run this example on testnet: | ||
|
||
1. rename ".env.template" to ".env.testnet" | ||
2. uncomment, and set INTEGRATION_BASE to the testnet url | ||
3. make sure you are in the "deployAccountUDC" directory | ||
4. execute `go mod tidy` | ||
5. execute `go run main.go` | ||
|
||
|
||
|
||
This example uses a pre-existing class on the Sepolia network to deploy a new account contract. To successfully run this example, you will need: 1) a Sepolia endpoint, and 2) some Sepolia ETH to fund the precomputed address. | ||
|
||
Steps: | ||
1. Rename the ".env.template" file located at the root of the "examples" folder to ".env" | ||
1. Uncomment, and assign your testnet endpoint to the `RPC_PROVIDER_URL` variable in the ".env" file | ||
1. Make sure you are in the "deployAccountUDC" directory | ||
1. Execute `go run main.go` | ||
1. Fund the precomputed address using a starknet faucet, eg https://starknet-faucet.vercel.app/ | ||
1. Press any key, then enter | ||
|
||
At this point your account should be deployed on testnet, and you can use a block explorer like [Voyager](https://sepolia.voyager.online/) to view your transaction using the transaction hash. | ||
|
Oops, something went wrong.