Skip to content

Commit

Permalink
chore: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Darlington02 committed Aug 21, 2024
1 parent 56ced1a commit 75ff419
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
4 changes: 1 addition & 3 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ Before you begin, you need to install the following tools:
- [Node (v18 LTS)](https://nodejs.org/en/download/)
- [Rust](https://www.rust-lang.org/tools/install)
- [Git](https://git-scm.com/downloads)
- [Scarb](https://docs.swmansion.com/scarb/docs.html)
- [Starknet Foundry](https://foundry-rs.github.io/starknet-foundry/)

## QUICKSTART

Expand All @@ -23,7 +21,7 @@ git clone [email protected]:argentlabs/Starknet-Scaffold.git
cd Starknet-Scaffold
```

Or install using create-starknet-app (recommended). This takes in the name and boilerplate type. If you need a basic fullstack boilerplate with frontend UI components, specify the `fullstack` type, if you need just contracts specify, `contract_only`, else for full debugging suite, use `debugger`.
Or install using create-starknet-app (recommended).

PS: defaults to debugger mode, if no type is specified.

Expand Down
11 changes: 6 additions & 5 deletions contracts/scripts/src/hellostarknet.cairo
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
use sncast_std::{
declare, deploy, DeclareResult, DeployResult, get_nonce, DisplayContractAddress,
DisplayClassHash,
FeeSettings,
EthFeeSettings
DisplayClassHash, FeeSettings, EthFeeSettings
};

fn main() {
let max_fee = 99999999999999999;
let salt = 0x3;
let nonce = get_nonce('latest');

let declare_result = declare("HelloStarknet", FeeSettings::Eth(EthFeeSettings { max_fee: Option::Some(max_fee) }),
Option::Some(nonce))
let declare_result = declare(
"HelloStarknet",
FeeSettings::Eth(EthFeeSettings { max_fee: Option::Some(max_fee) }),
Option::Some(nonce)
)
.expect('contract already declared');

let class_hash = declare_result.class_hash;
Expand Down

0 comments on commit 75ff419

Please sign in to comment.