Skip to content

Commit

Permalink
Update devcontainer image hash: 136a67a (dojoengine#1412)
Browse files Browse the repository at this point in the history
  • Loading branch information
tarrencev authored Jan 11, 2024
1 parent 18182a0 commit 3fd7f3c
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 36 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// https://github.com/microsoft/vscode-dev-containers/tree/v0.245.2/containers/rust
{
"name": "Rust",
"image": "ghcr.io/dojoengine/dojo-dev:448ffda",
"image": "ghcr.io/dojoengine/dojo-dev:136a67a",
"runArgs": [
"--cap-add=SYS_PTRACE",
"--security-opt",
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ on:

env:
CARGO_TERM_COLOR: always
RUST_VERSION: 1.70.0
RUST_VERSION: 1.74.0

jobs:
test:
runs-on: ubuntu-latest-16-cores
container:
image: ghcr.io/dojoengine/dojo-dev:448ffda
image: ghcr.io/dojoengine/dojo-dev:136a67a
steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
Expand All @@ -28,7 +28,7 @@ jobs:
ensure-wasm:
runs-on: ubuntu-latest
container:
image: ghcr.io/dojoengine/dojo-dev:448ffda
image: ghcr.io/dojoengine/dojo-dev:136a67a
steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
Expand Down Expand Up @@ -61,7 +61,7 @@ jobs:
dojo-core-test:
runs-on: ubuntu-latest
container:
image: ghcr.io/dojoengine/dojo-dev:448ffda
image: ghcr.io/dojoengine/dojo-dev:136a67a
steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
Expand All @@ -70,7 +70,7 @@ jobs:
dojo-spawn-and-move-example-test:
runs-on: ubuntu-latest
container:
image: ghcr.io/dojoengine/dojo-dev:448ffda
image: ghcr.io/dojoengine/dojo-dev:136a67a
steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
Expand All @@ -79,7 +79,7 @@ jobs:
dojo-world-bindings-check:
runs-on: ubuntu-latest
container:
image: ghcr.io/dojoengine/dojo-dev:448ffda
image: ghcr.io/dojoengine/dojo-dev:136a67a
steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
Expand All @@ -88,7 +88,7 @@ jobs:
clippy:
runs-on: ubuntu-latest
container:
image: ghcr.io/dojoengine/dojo-dev:448ffda
image: ghcr.io/dojoengine/dojo-dev:136a67a
steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
Expand All @@ -97,7 +97,7 @@ jobs:
fmt:
runs-on: ubuntu-latest
container:
image: ghcr.io/dojoengine/dojo-dev:448ffda
image: ghcr.io/dojoengine/dojo-dev:136a67a
steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
Expand All @@ -106,7 +106,7 @@ jobs:
docs:
runs-on: ubuntu-latest
container:
image: ghcr.io/dojoengine/dojo-dev:448ffda
image: ghcr.io/dojoengine/dojo-dev:136a67a
steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-dispatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
contents: write
runs-on: ubuntu-latest
container:
image: ghcr.io/dojoengine/dojo-dev:448ffda
image: ghcr.io/dojoengine/dojo-dev:136a67a
steps:
# Workaround described here: https://github.com/actions/checkout/issues/760
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

env:
CARGO_TERM_COLOR: always
RUST_VERSION: 1.70.0
RUST_VERSION: 1.74.0
REGISTRY_IMAGE: ghcr.io/${{ github.repository }}

jobs:
Expand Down
4 changes: 2 additions & 2 deletions crates/katana/core/src/service/messaging/starknet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ mod tests {
let to_address = selector!("to_address");
let selector = selector!("selector");
let nonce = FieldElement::ONE;
let calldata = vec![from_address, FieldElement::THREE];
let calldata = [from_address, FieldElement::THREE];
let transaction_hash = FieldElement::ZERO;

let event = EmittedEvent {
Expand Down Expand Up @@ -522,7 +522,7 @@ mod tests {
let _to_address = selector!("to_address");
let _selector = selector!("selector");
let _nonce = FieldElement::ONE;
let _calldata = vec![from_address, FieldElement::THREE];
let _calldata = [from_address, FieldElement::THREE];
let transaction_hash = FieldElement::ZERO;

let event = EmittedEvent {
Expand Down
42 changes: 21 additions & 21 deletions crates/katana/storage/provider/tests/block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,6 @@ use fixtures::{
};
use utils::generate_dummy_blocks_and_receipts;

#[template]
#[rstest::rstest]
#[case::insert_1_block(1)]
#[case::insert_2_block(2)]
#[case::insert_5_block(5)]
#[case::insert_10_block(10)]
fn insert_block_cases(#[case] block_count: u64) {}

#[apply(insert_block_cases)]
fn insert_block_with_in_memory_provider(
#[from(in_memory_provider)] provider: BlockchainProvider<InMemoryProvider>,
Expand Down Expand Up @@ -139,19 +131,6 @@ where
Ok(())
}

#[template]
#[rstest::rstest]
#[case::state_update_at_block_1(1, mock_state_updates()[0].clone())]
#[case::state_update_at_block_2(2, mock_state_updates()[1].clone())]
#[case::state_update_at_block_3(3, StateUpdatesWithDeclaredClasses::default())]
#[case::state_update_at_block_5(5, mock_state_updates()[2].clone())]
fn test_read_state_update<Db>(
#[from(provider_with_states)] provider: BlockchainProvider<Db>,
#[case] block_num: BlockNumber,
#[case] expected_state_update: StateUpdatesWithDeclaredClasses,
) {
}

#[apply(test_read_state_update)]
fn test_read_state_update_with_in_memory_provider(
#[with(in_memory_provider())] provider: BlockchainProvider<InMemoryProvider>,
Expand Down Expand Up @@ -193,3 +172,24 @@ where
assert_eq!(actual_state_update, Some(expected_state_update.state_updates));
Ok(())
}

#[template]
#[rstest::rstest]
#[case::insert_1_block(1)]
#[case::insert_2_block(2)]
#[case::insert_5_block(5)]
#[case::insert_10_block(10)]
fn insert_block_cases(#[case] block_count: u64) {}

#[template]
#[rstest::rstest]
#[case::state_update_at_block_1(1, mock_state_updates()[0].clone())]
#[case::state_update_at_block_2(2, mock_state_updates()[1].clone())]
#[case::state_update_at_block_3(3, StateUpdatesWithDeclaredClasses::default())]
#[case::state_update_at_block_5(5, mock_state_updates()[2].clone())]
fn test_read_state_update<Db>(
#[from(provider_with_states)] provider: BlockchainProvider<Db>,
#[case] block_num: BlockNumber,
#[case] expected_state_update: StateUpdatesWithDeclaredClasses,
) {
}
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[toolchain]
channel = "1.70.0"
channel = "1.74.0"

0 comments on commit 3fd7f3c

Please sign in to comment.