Skip to content

Commit 4e68e29

Browse files
more fixes
1 parent c6360de commit 4e68e29

3 files changed

Lines changed: 4 additions & 16 deletions

File tree

  • packages

packages/rs-dpp/src/data_contract/document_type/class_methods/try_from_schema/v1/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,11 +215,11 @@ impl DocumentTypeV1 {
215215

216216
#[cfg(feature = "validation")]
217217
if full_validation {
218-
validation_operations.push(
218+
validation_operations.extend(std::iter::once(
219219
ProtocolValidationOperation::DocumentTypeSchemaPropertyValidation(
220220
property_values.values().len() as u64,
221221
),
222-
);
222+
));
223223

224224
// We should validate that the positions are continuous
225225
for (pos, value) in property_values.values().enumerate() {

packages/rs-drive-abci/tests/strategy_tests/token_tests.rs

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -470,18 +470,7 @@ mod tests {
470470

471471
let block_count = 60;
472472

473-
let ChainExecutionOutcome {
474-
abci_app,
475-
proposers,
476-
validator_quorums: quorums,
477-
current_validator_quorum_hash: current_quorum_hash,
478-
current_proposer_versions,
479-
end_time_ms,
480-
identity_nonce_counter,
481-
identity_contract_nonce_counter,
482-
instant_lock_quorums,
483-
..
484-
} = run_chain_for_strategy(
473+
let ChainExecutionOutcome { abci_app, .. } = run_chain_for_strategy(
485474
&mut platform,
486475
block_count, // block count is 30
487476
strategy.clone(),
@@ -791,7 +780,6 @@ mod tests {
791780
let state = platform.state.load();
792781

793782
{
794-
let counter = platform.drive.cache.protocol_versions_counter.read();
795783
platform
796784
.drive
797785
.fetch_versions_with_counter(None, &platform_version.drive)

packages/rs-platform-wallet/examples/basic_usage.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use platform_wallet::{PlatformWalletError, PlatformWalletInfo};
66
fn main() -> Result<(), PlatformWalletError> {
77
// Create a platform wallet
88
let wallet_id = [1u8; 32];
9-
let mut platform_wallet = PlatformWalletInfo::new(wallet_id, "My Platform Wallet".to_string());
9+
let platform_wallet = PlatformWalletInfo::new(wallet_id, "My Platform Wallet".to_string());
1010

1111
println!("Created wallet: {:?}", platform_wallet.name());
1212

0 commit comments

Comments
 (0)