Skip to content

Commit

Permalink
add new example in Getting Started section
Browse files Browse the repository at this point in the history
  • Loading branch information
cicr99 committed Nov 1, 2023
1 parent 94ccd46 commit 8bc158c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,7 @@ operations on the wallets. The package has excellent documentation for a smooth
- library documentation available at [pkg.go.dev](https://pkg.go.dev/github.com/NethermindEth/starknet.go).
- [simple call example](./examples/simpleCall) to make a contract call to a mainnet contract
- [deploy account example](./examples/deployAccount) to deploy a new account contract on testnet.
<!-- Currently not working
- [curve example](./examples/curve) initializing the StarkCurve for signing and verification
- [contract example](./examples/contract) for smart contract deployment and function call
- [account example](./examples/contract) for Account initialization and invocation call -->
- [invoke transaction example](./examples/simpleInvoke) to add a new invoke transaction on testnet.

### Run Examples

Expand Down
4 changes: 2 additions & 2 deletions examples/simpleInvoke/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"github.com/joho/godotenv"
)

// NOTE : Please add in your keys only for testing purposes, incase of a leak you would potentially lose your funds.
// NOTE : Please add in your keys only for testing purposes, in case of a leak you would potentially lose your funds.
var (
name string = "testnet" //env."name"
account_addr string = "0x06f36e8a0fc06518125bbb1c63553e8a7d8597d437f9d56d891b8c7d3c977716" //Replace it with your account address
Expand Down Expand Up @@ -81,7 +81,7 @@ func main() {
SenderAddress: accnt.AccountAddress,
}

// Converting the contractaddress from hex to felt
// Converting the contractAddress from hex to felt
contractAddress, err := utils.HexToFelt(someContract)
if err != nil {
panic(err.Error())
Expand Down

0 comments on commit 8bc158c

Please sign in to comment.