Skip to content
Snippets Groups Projects
Unverified Commit b0cd8318 authored by Liam Aharon's avatar Liam Aharon
Browse files

update tests

parent 19cd1d2f
Branches
No related merge requests found
......@@ -260,7 +260,7 @@ pub mod pallet {
let origin_acc_id = ensure_signed(origin)?;
let admin = match admin {
Some(admin) => admin,
None => origin_acc_id,
None => origin_acc_id.clone(),
};
// Create the pool.
......
......@@ -80,6 +80,7 @@ fn create_pool_works() {
assert_eq!(
events(),
[Event::<MockRuntime>::PoolCreated {
creator: user,
pool_id: 0,
staking_asset_id: staking_asset_id.clone(),
reward_asset_id: reward_asset_id.clone(),
......@@ -120,6 +121,7 @@ fn create_pool_works() {
assert_eq!(
events(),
[Event::<MockRuntime>::PoolCreated {
creator: user,
pool_id: 1,
staking_asset_id: staking_asset_id.clone(),
reward_asset_id: reward_asset_id.clone(),
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment