Skip to content

Commit

Permalink
Merge branch 'main' into patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
tensojka authored Apr 19, 2023
2 parents 7673ce8 + c0fa81e commit 2ad756d
Show file tree
Hide file tree
Showing 162 changed files with 4,459 additions and 2,304 deletions.
187 changes: 42 additions & 145 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ assert_matches = "1.5"
bimap = "0.6.2"
cairo-felt = "0.3.0-rc1"
cairo-vm = "0.3.0-rc1"
chrono = "0.4.23"
clap = { version = "4.0", features = ["derive"] }
colored = "2"
const-fnv1a-hash = "1.1.0"
Expand Down Expand Up @@ -84,6 +83,7 @@ test-case = "2.2.2"
test-case-macros = "2.2.2"
test-log = "0.2.11"
thiserror = "1.0.32"
time = { version = "0.3.20", features = ["formatting", "macros", "local-offset"] }
tokio = { version = "1.18.2", features = ["full", "sync"] }
toml = "0.4.2"
tower-lsp = "0.17.0"
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,11 @@ Compile a Starknet Contract to a Sierra ContractClass:
cargo run --bin starknet-compile -- /path/to/input.cairo /path/to/output.json
```

Or specify the contract path if multiple contracts are defined in the same project:
```bash
cargo run --bin starknet-compile -- /path/to/input/crate /path/to/output.json --contract-path path::to::contract
```

Compile the ContractClass of a CompiledClass:
```bash
cargo run --bin starknet-sierra-compile -- /path/to/input.json /path/to/output.casm
Expand Down
1 change: 0 additions & 1 deletion corelib/src/array.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@ impl ArrayTCloneImpl<T, impl TClone: Clone<T>, impl TDrop: Drop<T>> of Clone<Arr
let mut response = array_new();
let mut span = self.span();
loop {
withdraw_gas().expect('Out of gas');
match span.pop_front() {
Option::Some(v) => {
response.append(TClone::clone(v));
Expand Down
Loading

0 comments on commit 2ad756d

Please sign in to comment.