Skip to content

Commit

Permalink
update starknet-foundry to v0.24
Browse files Browse the repository at this point in the history
  • Loading branch information
saimeunt authored and tekkac committed May 23, 2024
1 parent d23498f commit 53812bb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
scarb 2.6.4
starknet-foundry 0.23.0
starknet-foundry 0.24.0
2 changes: 1 addition & 1 deletion Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ starknet = "2.6.3"
openzeppelin = { git = "https://github.com/OpenZeppelin/cairo-contracts.git", tag = "v0.13.0" }

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

[scripts]
test = "snforge test"
Expand Down
6 changes: 3 additions & 3 deletions tests/erc721_dynamic_traits.cairo
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use core::panic_with_felt252;
use snforge_std::{
test_address, start_prank, CheatTarget, spy_events, SpyOn, EventSpy, EventAssertions
test_address, cheat_caller_address, CheatSpan, spy_events, SpyOn, EventSpy, EventAssertions
};
use openzeppelin::tests::utils::constants::{TOKEN_ID, TOKEN_ID_2, OTHER, BASE_URI_2};
use openzeppelin::access::ownable::OwnableComponent;
Expand Down Expand Up @@ -48,7 +48,7 @@ fn test_returns_value_set() {
#[test]
fn test_only_owner_can_set_values() {
let dynamic_traits_test = DynamicTraitsTestTrait::setup();
start_prank(CheatTarget::One(dynamic_traits_test.contract_address), OTHER());
cheat_caller_address(dynamic_traits_test.contract_address, OTHER(), CheatSpan::TargetCalls(1));
match dynamic_traits_test.token_safe.set_trait(0, 'test', 'test') {
Result::Ok(_) => panic_with_felt252('FAIL'),
Result::Err(panic_data) => {
Expand Down Expand Up @@ -100,7 +100,7 @@ fn test_get_and_set_trait_metadata_uri() {
]
);
assert_eq!(dynamic_traits_test.token.get_trait_metadata_uri(), BASE_URI_2());
start_prank(CheatTarget::One(dynamic_traits_test.contract_address), OTHER());
cheat_caller_address(dynamic_traits_test.contract_address, OTHER(), CheatSpan::TargetCalls(1));
match dynamic_traits_test.token_safe.set_trait_metadata_uri(BASE_URI_2()) {
Result::Ok(_) => panic_with_felt252('FAIL'),
Result::Err(panic_data) => {
Expand Down

0 comments on commit 53812bb

Please sign in to comment.