Skip to content

Commit 74697e0

Browse files
committed
chore: fmt and clippy
1 parent fcc2249 commit 74697e0

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ pub use chia::protocol::{Bytes, Bytes32, Coin, CoinSpend, CoinState, Program, Sp
2020
pub use chia::puzzles::{EveProof, LineageProof, Proof};
2121
pub use chia_wallet_sdk::client::Peer;
2222
pub use chia_wallet_sdk::driver::{
23-
DataStore, DataStoreInfo, DataStoreMetadata, DelegatedPuzzle, P2ParentCoin
23+
DataStore, DataStoreInfo, DataStoreMetadata, DelegatedPuzzle, P2ParentCoin,
2424
};
2525
pub use chia_wallet_sdk::utils::Address;
2626

src/wallet.rs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ use chia::puzzles::{
2424
};
2525
use chia_puzzles::SINGLETON_LAUNCHER_HASH;
2626
use chia_wallet_sdk::client::Peer;
27-
use chia_wallet_sdk::coinset::{ChiaRpcClient, CoinsetClient};
2827
use chia_wallet_sdk::driver::{
2928
get_merkle_tree, Action, Asset, Cat, DataStore, DataStoreMetadata, DelegatedPuzzle, Did,
3029
DidInfo, DriverError, HashedPtr, Id, IntermediateLauncher, Launcher, Layer, NftMint,
@@ -37,7 +36,7 @@ use crate::error::WalletError;
3736
pub use crate::types::{coin_records_to_states, SuccessResponse, XchServerCoin};
3837
use crate::types::{EveProof, LineageProof, Proof};
3938
use crate::xch_server_coin::{urls_from_conditions, MirrorArgs, MirrorSolution, NewXchServerCoin};
40-
use crate::{morph_store_launcher_id, NetworkType, UnspentCoinStates, DIG_MIN_HEIGHT};
39+
use crate::{morph_store_launcher_id, NetworkType, UnspentCoinStates};
4140
use chia_wallet_sdk::signer::{AggSigConstants, RequiredSignature, SignerError};
4241
use chia_wallet_sdk::types::{
4342
announcement_id,
@@ -70,7 +69,7 @@ pub async fn get_unspent_coin_states_by_hint(
7069
NetworkType::Mainnet => MAINNET_CONSTANTS.genesis_challenge,
7170
NetworkType::Testnet11 => TESTNET11_CONSTANTS.genesis_challenge,
7271
};
73-
Ok(get_unspent_coin_states(peer, hint, None, header_hash, true).await?)
72+
get_unspent_coin_states(peer, hint, None, header_hash, true).await
7473
}
7574

7675
/// Instantiates a $DIG collateral coin
@@ -388,9 +387,12 @@ pub fn spend_dig_collateral_coin(
388387
// use actions and spends to attach fee to transaction and generate change
389388
let actions = [Action::fee(fee)];
390389
let mut fee_spends = Spends::new(p2_puzzle_hash);
391-
fee_spends.conditions.required.push(AssertConcurrentSpend::new(
392-
selected_collateral_coin.coin.coin_id(),
393-
));
390+
fee_spends
391+
.conditions
392+
.required
393+
.push(AssertConcurrentSpend::new(
394+
selected_collateral_coin.coin.coin_id(),
395+
));
394396

395397
// add fee coins to spends
396398
for fee_xch_coin in fee_coins {

0 commit comments

Comments
 (0)