Skip to content

Commit

Permalink
Update and rename deployAccountUDC example
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagodeev committed Jun 19, 2024
1 parent 71e23a9 commit 587fa2f
Show file tree
Hide file tree
Showing 7 changed files with 195 additions and 203 deletions.
2 changes: 0 additions & 2 deletions examples/deployAccountUDC/.env.template

This file was deleted.

9 changes: 0 additions & 9 deletions examples/deployAccountUDC/README.md

This file was deleted.

33 changes: 0 additions & 33 deletions examples/deployAccountUDC/go.mod

This file was deleted.

6 changes: 0 additions & 6 deletions examples/deployAccountUDC/go.work

This file was deleted.

153 changes: 0 additions & 153 deletions examples/deployAccountUDC/main.go

This file was deleted.

24 changes: 24 additions & 0 deletions examples/deployContractUDC/README.md
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.

Loading

0 comments on commit 587fa2f

Please sign in to comment.