Skip to content

Commit

Permalink
chore: bump dependencies (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
tserg authored Mar 19, 2024
1 parent 5365102 commit 8fdfc97
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 19 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ jobs:
- uses: actions/checkout@v3
- uses: software-mansion/setup-scarb@v1
with:
scarb-version: "2.4.0"
scarb-version: "2.6.3"
- run: scarb fmt --check
- run: scarb build

- uses: foundry-rs/setup-snfoundry@v2
- uses: foundry-rs/setup-snfoundry@v3
with:
starknet-foundry-version: "0.13.1"
starknet-foundry-version: "0.19.0"
- run: snforge test
6 changes: 3 additions & 3 deletions Scarb.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ version = 1

[[package]]
name = "access_control"
version = "0.2.0"
version = "0.3.0"
dependencies = [
"snforge_std",
]

[[package]]
name = "snforge_std"
version = "0.1.0"
source = "git+https://github.com/foundry-rs/starknet-foundry.git?tag=v0.13.1#e1412ed040d10e66be0fd84115f72a667b57a116"
version = "0.19.0"
source = "git+https://github.com/foundry-rs/starknet-foundry.git?tag=v0.19.0#a3391dce5bdda51c63237032e6cfc64fb7a346d4"
10 changes: 6 additions & 4 deletions Scarb.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "access_control"
version = "0.2.0"
cairo-version = "2.4.0"
version = "0.3.0"
cairo-version = "2.6.0"
authors = ["Lindy Labs"]
description = "Member-based access control component for Cairo"
readme = "README.md"
Expand All @@ -10,8 +10,10 @@ license-file = "LICENSE"
keywords = ["access control", "authorization", "cairo", "starknet"]

[dependencies]
starknet = "2.4.0"
snforge_std = { git = "https://github.com/foundry-rs/starknet-foundry.git", tag = "v0.13.1" }
starknet = ">= 2.6.0"

[dev-dependencies]
snforge_std = { git = "https://github.com/foundry-rs/starknet-foundry.git", tag = "v0.19.0" }

[lib]

Expand Down
9 changes: 0 additions & 9 deletions src/tests/test_access_control.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ mod test_access_control {
use snforge_std::cheatcodes::events::EventAssertions;
use snforge_std::{
spy_events, SpyOn, EventSpy, EventFetcher, event_name_hash, Event, start_prank, CheatTarget, test_address,
PrintTrait
};
use starknet::contract_address::{ContractAddress, ContractAddressZeroable, contract_address_try_from_felt252};
//
Expand Down Expand Up @@ -80,14 +79,6 @@ mod test_access_control {

assert(state.get_admin() == admin, 'initialize wrong admin');

let expected_events = array![
(
test_address(),
access_control_component::Event::AdminChanged(
access_control_component::AdminChanged { old_admin: zero_addr(), new_admin: admin(), }
)
),
];
spy.fetch_events();

let (_, event) = spy.events.at(0);
Expand Down

0 comments on commit 8fdfc97

Please sign in to comment.