Skip to content

Commit

Permalink
fix: add explicit edition for test cairo contracts across the repo (#…
Browse files Browse the repository at this point in the history
…2974)

fix: add explicit edition for test cairo contracts
  • Loading branch information
glihm authored Jan 30, 2025
1 parent 0adbcdd commit 687334d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions bin/sozo/tests/test_data/invalid_cairo_version/Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
cairo-version = "1.2.0"
name = "sozo_test"
version = "0.3.1-rc7"
edition = "2023_01"
1 change: 1 addition & 0 deletions crates/benches/contracts/Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
cairo-version = "=2.9.1"
name = "benches"
version = "1.0.0-rc.0"
edition = "2023_01"

[[target.starknet-contract]]
build-external-contracts = ["dojo::world::world_contract::world"]
Expand Down
1 change: 1 addition & 0 deletions crates/katana/contracts/messaging/cairo/Scarb.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[package]
name = "katana_messaging"
version.workspace = true
edition = "2023_01"

[dependencies]
starknet.workspace = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,10 +238,11 @@ mod appchain_messaging {
selector: felt252,
payload: Span<felt252>
) -> (felt252, felt252) {
let from_address = starknet::get_caller_address();
let nonce = self.sn_to_appc_nonce.read() + 1;
self.sn_to_appc_nonce.write(nonce);

let msg_hash = compute_hash_sn_to_appc(nonce, to_address, selector, payload);
let msg_hash = compute_hash_sn_to_appc(from_address, to_address, selector, payload, nonce);

self
.emit(
Expand Down

0 comments on commit 687334d

Please sign in to comment.