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

Foundry Version v0.11.0 #595

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
scarb-version: "2.3.1"
- uses: foundry-rs/setup-snfoundry@v2
with:
starknet-foundry-version: 0.10.1
starknet-foundry-version: 0.11.0
- name: Run cairo tests
run: snforge test
# - name: Set up Scarb
Expand Down
2 changes: 1 addition & 1 deletion Scarb.lock
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@ dependencies = [
[[package]]
name = "snforge_std"
version = "0.1.0"
source = "git+https://github.com/foundry-rs/starknet-foundry.git?tag=v0.10.1#da085bd11e1b151d0592f43917136560d9b70d37"
source = "git+https://github.com/foundry-rs/starknet-foundry.git?tag=v0.10.1#da085bd11e1b151d0592f43917136560d9b70d37"
2 changes: 1 addition & 1 deletion Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ alexandria_data_structures = { git = "https://github.com/keep-starknet-strange/a
alexandria_math = { git = "https://github.com/keep-starknet-strange/alexandria.git", tag = "cairo-v2.3.0-rc0" }
alexandria_storage = { git = "https://github.com/keep-starknet-strange/alexandria.git", tag = "cairo-v2.3.0-rc0" }
alexandria_sorting = { git = "https://github.com/keep-starknet-strange/alexandria.git", tag = "cairo-v2.3.0-rc0" }
snforge_std = { git = "https://github.com/foundry-rs/starknet-foundry.git", tag = "v0.10.1" }
snforge_std = { git = "https://github.com/foundry-rs/starknet-foundry.git", tag = "v0.11.0" }


[tool.snforge]
Expand Down
2 changes: 1 addition & 1 deletion book/src/continuous-integration/workflows.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ jobs:
- uses: actions/checkout@v3
- uses: foundry-rs/setup-snfoundry@v1
with:
starknet-foundry-version: 0.10.1
starknet-foundry-version: 0.11.0
- uses: software-mansion/setup-scarb@v1
with:
scarb-version: "0.7.0"
Expand Down
3 changes: 0 additions & 3 deletions src/token/token_utils.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ use satoru::token::erc20::interface::{IERC20, IERC20Dispatcher, IERC20Dispatcher
use satoru::utils::account_utils::validate_receiver;
use satoru::bank::error::BankError;
use integer::u256_from_felt252;
use debug::PrintTrait;


fn fee_token(data_store: IDataStoreDispatcher) -> ContractAddress {
Expand All @@ -26,7 +25,6 @@ fn transfer(
receiver: ContractAddress,
amount: u128
) {
amount.print();
if (amount.is_zero()) {
return ();
}
Expand All @@ -39,7 +37,6 @@ fn transfer(
let success0 = IERC20Dispatcher { contract_address: token }
.transfer(recipient: receiver, amount: amount_u256);
if (success0 == true) {
amount_u256.print();
return ();
}

Expand Down
4 changes: 1 addition & 3 deletions tests/exchange/test_liquidation_handler.cairo
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
use snforge_std::{
declare, start_prank, stop_prank, start_roll, ContractClassTrait, ContractClass, PrintTrait
};
use snforge_std::{declare, start_prank, stop_prank, start_roll, ContractClassTrait, ContractClass};

use satoru::exchange::liquidation_handler::{
LiquidationHandler, ILiquidationHandlerDispatcher, ILiquidationHandler,
Expand Down
3 changes: 0 additions & 3 deletions tests/integration/create_market.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
// Core lib imports.

use result::ResultTrait;
use debug::PrintTrait;
use traits::{TryInto, Into};
use starknet::{
ContractAddress, get_caller_address, Felt252TryIntoContractAddress, contract_address_const,
Expand Down Expand Up @@ -241,8 +240,6 @@ fn test_deposit_market_integration() {

// let balance = IERC20Dispatcher{ contract_address: market.market_token }.balance_of(caller_address);

// IERC20Dispatcher{ contract_address: market.demarket_token }.balance_of(caller_address).print();

// *********************************************************************************************
// * TEARDOWN *
// *********************************************************************************************
Expand Down
1 change: 0 additions & 1 deletion tests/integration/test_create_and_execute_swap.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ use snforge_std::{
};
use traits::Default;
use poseidon::poseidon_hash_span;
use debug::PrintTrait;
// Local imports.
use satoru::role::role;
use satoru::tests_lib;
Expand Down
Loading