Skip to content

Commit

Permalink
fix(platform)!: add hyphen to match for contested documents on Dashpay (
Browse files Browse the repository at this point in the history
  • Loading branch information
QuantumExplorer authored Jul 22, 2024
1 parent 9a177ff commit d3170b9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions packages/dpns-contract/schema/v1/dpns-contract-documents.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
"fieldMatches": [
{
"field": "normalizedLabel",
"regexPattern": "^[a-zA-Z01]{3,19}$"
"regexPattern": "^[a-zA-Z01-]{3,19}$"
}
],
"resolution": 0,
"description": "If the normalized label part of this index is less than 20 characters (all alphabet a-z and 0 and 1) then this index is non unique while contest resolution takes place."
"description": "If the normalized label part of this index is less than 20 characters (all alphabet a-z, A-Z, 0, 1, and -) then a masternode vote contest takes place to give out the name"
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,8 @@ mod tests {
assert_eq!(
root_hash,
[
37, 162, 178, 238, 218, 180, 162, 24, 34, 199, 191, 38, 43, 39, 197, 101, 133,
229, 130, 128, 20, 135, 168, 126, 219, 15, 235, 112, 139, 89, 187, 115
122, 78, 218, 93, 76, 126, 219, 4, 222, 149, 39, 191, 51, 199, 229, 9, 180,
151, 132, 38, 91, 7, 107, 20, 46, 4, 39, 59, 203, 2, 86, 79
]
)
}
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 @@ -1194,7 +1194,7 @@ mod tests {
.unwrap()
.unwrap()
),
"11f2f5b4a38234430b5257634470fc4edd7abfedff309139ca95c5e371890bc7".to_string()
"57818d17af37f038e4a1cf89608e872ab7fef928822e7820c660eb26141fb733".to_string()
)
}

Expand Down Expand Up @@ -1915,7 +1915,7 @@ mod tests {
.unwrap()
.unwrap()
),
"cae9c984e5fe548cc7a3edd720ab0f58a2d25e5a16071402605a9ff8cfe870c7".to_string()
"462125a9dbf2165b27fc301c1336dad343de526a4b1904604c8a7d78ad1bcede".to_string()
)
}

Expand Down Expand Up @@ -2050,7 +2050,7 @@ mod tests {
.unwrap()
.unwrap()
),
"6cbe10061aac832a35ec0eb9b22826aebfcbe697cec76fe899afa1b1803dd2c7".to_string()
"e3c946107bfe02895a832339616153131bb09550a6378b680d18aca088ac266a".to_string()
)
}

Expand Down

0 comments on commit d3170b9

Please sign in to comment.