Skip to content

Commit

Permalink
revert: mutability option with config
Browse files Browse the repository at this point in the history
  • Loading branch information
shumkov committed Jun 18, 2024
1 parent 3009259 commit d29f446
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -320,8 +320,8 @@ mod tests {
assert_eq!(
root_hash,
[
115, 12, 128, 112, 147, 9, 54, 99, 241, 209, 128, 221, 251, 54, 5, 115, 255,
226, 111, 160, 174, 221, 250, 250, 115, 229, 46, 223, 84, 36, 79, 52
139, 206, 9, 184, 173, 191, 156, 52, 83, 3, 205, 1, 30, 3, 217, 71, 42, 163,
92, 198, 249, 218, 220, 107, 139, 201, 77, 165, 88, 58, 106, 143
]
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,13 @@ pub(super) fn data_trigger_bindings_list_v0() -> Result<Vec<DataTriggerBindingV0
transition_action_type: DocumentTransitionActionType::Delete,
data_trigger: reject_data_trigger,
},
// We can't use mutability flag otherwise documents won't have revision
DataTriggerBindingV0 {
data_contract_id: SystemDataContract::Withdrawals.id(),
document_type: withdrawal::NAME.to_string(),
transition_action_type: DocumentTransitionActionType::Replace,
data_trigger: reject_data_trigger,
},
DataTriggerBindingV0 {
data_contract_id: SystemDataContract::Withdrawals.id(),
document_type: withdrawal::NAME.to_string(),
Expand Down
6 changes: 3 additions & 3 deletions packages/rs-drive-abci/tests/strategy_tests/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1088,7 +1088,7 @@ mod tests {
.unwrap()
.unwrap()
),
"5d622233a887daa116da2a17d61f6a8b376bc0d6af844d66fe329abdd04cc582".to_string()
"c537ee3aba7df0809f3cfca6a6632b7aa5810217cabc5df219b521dab15d2855".to_string()
)
}

Expand Down Expand Up @@ -1778,7 +1778,7 @@ mod tests {
.unwrap()
.unwrap()
),
"a5c7ad0ec71a297a3a925195c646278840fefb7574df7049da3f6110a48b1c7c".to_string()
"6d799495bb481216f0a6873123336bf1b0e47e3bcffe49109d53873c507ac030".to_string()
)
}

Expand Down Expand Up @@ -1903,7 +1903,7 @@ mod tests {
.unwrap()
.unwrap()
),
"eb1efa036d293b892192d38495c62cd0840ec8426bea4bb3278bed96a638f1c9".to_string()
"5728187332625f009c64528d5a69a87f20f887b74b74c74472d974c0d3176389".to_string()
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"withdrawal": {
"description": "Withdrawal document to track underlying withdrawal transactions. Withdrawals should be created with IdentityWithdrawalTransition",
"creationRestrictionMode": 2,
"documentsMutable": false,
"type": "object",
"indices": [
{
Expand Down

0 comments on commit d29f446

Please sign in to comment.