Skip to content

Commit

Permalink
Fix / adjust staking tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Mauro Lacy committed Sep 18, 2024
1 parent 066ea79 commit 49b6ec8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
5 changes: 4 additions & 1 deletion contracts/btc-staking/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,10 @@ pub(crate) mod tests {
};
use cw_controllers::AdminResponse;
use hex::ToHex;
use test_utils::{get_btc_delegation, get_finality_provider};
use k256::schnorr::{Signature, SigningKey};
use test_utils::{
get_btc_del_unbonding_sig_bytes, get_btc_delegation, get_finality_provider, get_fp_sk_bytes,
};

pub(crate) const CREATOR: &str = "creator";
pub(crate) const INIT_ADMIN: &str = "initial_admin";
Expand Down
2 changes: 1 addition & 1 deletion contracts/btc-staking/src/queries.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ mod tests {
use cosmwasm_std::testing::message_info;
use cosmwasm_std::testing::{mock_dependencies, mock_env};
use cosmwasm_std::StdError::NotFound;
use cosmwasm_std::{from_json, Binary, Env, Storage};
use cosmwasm_std::{from_json, Env, Storage};

use babylon_apis::btc_staking_api::{FinalityProvider, UnbondedBtcDelegation};

Expand Down
3 changes: 2 additions & 1 deletion contracts/btc-staking/src/staking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,8 @@ pub(crate) mod tests {
use cosmwasm_std::testing::{message_info, mock_dependencies, mock_env};

use crate::contract::tests::{
create_new_finality_provider, get_active_btc_delegation, get_params, CREATOR, INIT_ADMIN,
create_new_finality_provider, create_new_fp_sk, get_active_btc_delegation,
get_btc_del_unbonding_sig, get_derived_btc_delegation, get_params, CREATOR, INIT_ADMIN,
};
use crate::contract::{execute, instantiate};
use crate::msg::{ExecuteMsg, InstantiateMsg};
Expand Down

0 comments on commit 49b6ec8

Please sign in to comment.