Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
enthusiastmartin committed Jul 7, 2023
1 parent 7c6b61c commit 6acbd05
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions pallets/stableswap/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -578,10 +578,7 @@ pub mod pallet {
pool_id,
who,
shares: share_amount,
amounts: vec![AssetBalance {
asset_id: asset_id,
amount,
}],
amounts: vec![AssetBalance { asset_id, amount }],
fee,
});

Expand Down
8 changes: 4 additions & 4 deletions pallets/stableswap/src/tests/add_liquidity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -497,11 +497,11 @@ fn add_liquidity_should_fail_when_provided_list_contains_same_assets() {
InitialLiquidity {
account: ALICE,
assets: vec![
AssetLiquidity {
AssetBalance {
asset_id: asset_a,
amount: 100 * ONE,
},
AssetLiquidity {
AssetBalance {
asset_id: asset_b,
amount: 100 * ONE,
},
Expand All @@ -517,11 +517,11 @@ fn add_liquidity_should_fail_when_provided_list_contains_same_assets() {
RuntimeOrigin::signed(BOB),
pool_id,
vec![
AssetLiquidity {
AssetBalance {
asset_id: asset_a,
amount: amount_added
},
AssetLiquidity {
AssetBalance {
asset_id: asset_a,
amount: amount_added
}
Expand Down

0 comments on commit 6acbd05

Please sign in to comment.