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

Update soroban v20.0.3 -> v20.1.0 #193

Merged
merged 17 commits into from
Jan 17, 2024
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Fix clippy lints and formatting
ueco-jb authored and --global committed Jan 17, 2024
commit d6d490e572c7f6f4b20016cfed0ab833a743f960
2 changes: 1 addition & 1 deletion contracts/factory/src/utils.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use soroban_sdk::{xdr::ToXdr, Address, Bytes, BytesN, Env, IntoVal, String, Symbol, Val, Vec};
use soroban_sdk::{xdr::ToXdr, Address, Bytes, BytesN, Env, IntoVal, Symbol, Val, Vec};

pub fn deploy_lp_contract(
env: &Env,
2 changes: 1 addition & 1 deletion contracts/multihop/src/contract.rs
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@ use crate::storage::{
SimulateReverseSwapResponse, SimulateSwapResponse, Swap,
};
use crate::utils::{verify_reverse_swap, verify_swap};
use crate::{factory_contract, lp_contract, lp_contract::Referral};
use crate::{factory_contract, lp_contract};

// Metadata that is added on to the WASM custom section
contractmeta!(
4 changes: 2 additions & 2 deletions contracts/pool_stable/src/tests/setup.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use soroban_sdk::{testutils::Address as _, Address, BytesN, Env, String};
use soroban_sdk::{Address, BytesN, Env};

use crate::{
contract::{StableLiquidityPool, StableLiquidityPoolClient},
@@ -35,7 +35,7 @@ pub fn deploy_stable_liquidity_pool_contract<'a>(
max_allowed_slippage_bps: impl Into<Option<i64>>,
max_allowed_spread_bps: impl Into<Option<i64>>,
) -> StableLiquidityPoolClient<'a> {
let admin = admin.into().unwrap_or(Address::generate(env));
let admin = admin.into().unwrap_or(Address::generate(&env));
let pool =
StableLiquidityPoolClient::new(env, &env.register_contract(None, StableLiquidityPool {}));
let token_wasm_hash = install_token_wasm(env);