Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/migrate scarb version #2902

Open
wants to merge 56 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
5b6f3d9
Fix: migrate scarb version for docs
wheval Jan 30, 2025
c9f56ee
fix: component_macros
wheval Jan 31, 2025
57fd474
remove unsused imports from component_macros
wheval Jan 31, 2025
f755cf0
fix: erc20_package
wheval Jan 31, 2025
8b8f0d4
fix fibonnaci function
wheval Jan 31, 2025
9aad99e
fix fibonacci test
wheval Jan 31, 2025
d6e01d6
fix features test
wheval Jan 31, 2025
ee4feb4
fix: file_reading
wheval Feb 1, 2025
3f68477
fix fuzzing
wheval Feb 1, 2025
51959c8
fix hello_workspaces
wheval Feb 1, 2025
577f9dd
fix panic_decoding
wheval Feb 1, 2025
d33b3a4
fix should_panic
wheval Feb 1, 2025
c8ebad9
fix simple_package
wheval Feb 1, 2025
60a1b32
fix collection_with_lib
wheval Feb 1, 2025
1238d72
fix: collection_with_lib
wheval Feb 1, 2025
d8b5792
fix: custom_target
wheval Feb 1, 2025
8242dae
fix custom_taget_custom_names
wheval Feb 1, 2025
6d0cd72
fix custom_target_only_integration
wheval Feb 1, 2025
c98475e
fix only_integration
wheval Feb 1, 2025
a96febc
fix only_units
wheval Feb 1, 2025
48fa2b3
fix unit_andintegration
wheval Feb 1, 2025
fa4dae1
fix exit_first
wheval Feb 1, 2025
23b3071
fix forking
wheval Feb 1, 2025
95ac28f
remove snfoundry_cache
wheval Feb 1, 2025
9be4b02
fix features
wheval Feb 1, 2025
79a5761
fix with_features
wheval Feb 1, 2025
58e92ee
fix trace_resources
wheval Feb 1, 2025
b006f3c
fix virtual_workspace
wheval Feb 1, 2025
dc1cc0d
Merge branch 'master' into Fix/migrate-scarb-version
wheval Feb 1, 2025
456d979
fix imports and dependencies
wheval Feb 4, 2025
4af8606
fix: remove default features
wheval Feb 4, 2025
a5fd08c
fix default features
wheval Feb 4, 2025
ad9437f
change version to 2.7.0 and use snforge_std
wheval Feb 4, 2025
770c869
use snforge_std instead of cairo test
wheval Feb 4, 2025
2d0b960
change version to 2.7.0
wheval Feb 4, 2025
8e70862
remove should panic
wheval Feb 5, 2025
7a28120
change assert_macros
wheval Feb 6, 2025
5d06213
change assert_macros version
wheval Feb 6, 2025
477697c
replace starknet version
wheval Feb 6, 2025
7c217ea
add newline
wheval Feb 7, 2025
ec24093
revert expected data
wheval Feb 10, 2025
8860bf1
Merge branch 'master' into Fix/migrate-scarb-version
wheval Feb 18, 2025
277de50
fix cheatnet folder
wheval Feb 19, 2025
97d1ab4
fix sncast
wheval Feb 19, 2025
a2a8d31
fix typo
wheval Feb 25, 2025
52b3630
merge master
wheval Feb 26, 2025
ba455e9
Merge branch 'master' into Fix/migrate-scarb-version
wheval Feb 27, 2025
79ca91f
run scarb fmt
wheval Mar 2, 2025
da7f96a
change failure data for test
wheval Mar 2, 2025
d63f6f6
resolve conflicts
wheval Mar 28, 2025
af612d7
fix: change imports from core to starknet
wheval Mar 28, 2025
5a35e47
fix: add snforge feature
wheval Mar 28, 2025
a5e49ad
scarb fmt
wheval Mar 28, 2025
3e1a537
fix merge conflicts
wheval Mar 31, 2025
cfa44a2
run scarb fmt
wheval Apr 1, 2025
87bd798
fix forking test
wheval Apr 1, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix custom_target_only_integration
  • Loading branch information
wheval committed Feb 1, 2025
commit 6d0cd72ae1f3032990a2ad4ff740c182b54ab383
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
#[starknet::interface]
trait IHelloStarknet<TContractState> {
pub trait IHelloStarknet<TContractState> {
fn increase_balance(ref self: TContractState, amount: felt252);
fn get_balance(self: @TContractState) -> felt252;
fn do_a_panic(self: @TContractState);
fn do_a_panic_with(self: @TContractState, panic_data: Array<felt252>);
}

#[starknet::contract]
mod HelloStarknet {
use array::ArrayTrait;
pub mod HelloStarknet {
use core::array::ArrayTrait;
use starknet::storage::{StoragePointerWriteAccess, StoragePointerReadAccess};

#[storage]
struct Storage {
@@ -44,7 +45,7 @@ mod HelloStarknet {

#[cfg(test)]
mod tests {
use snforge_std::{declare, ContractClassTrait};
use snforge_std::{declare};
use snforge_std::cheatcodes::contract_class::DeclareResultTrait;

#[test]
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
use array::ArrayTrait;
use result::ResultTrait;
use option::OptionTrait;
use traits::TryInto;
use starknet::ContractAddress;
use starknet::Felt252TryIntoContractAddress;
use core::array::ArrayTrait;
use core::result::ResultTrait;

use snforge_std::{declare, ContractClassTrait};
use snforge_std::cheatcodes::contract_class::DeclareResultTrait;