Skip to content

Commit

Permalink
trim whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
n8maninger committed Nov 3, 2024
1 parent bffc15b commit b791206
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/spendpolicy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -405,17 +405,17 @@ mod tests {
( SpendPolicy::after(Utc.timestamp_opt(100, 0).unwrap()), "{\"type\":\"after\",\"policy\":100}"),
( SpendPolicy::public_key(PublicKey::new([1; 32])), "{\"type\":\"pk\",\"policy\":\"ed25519:0101010101010101010101010101010101010101010101010101010101010101\"}"),
( SpendPolicy::hash(Hash256::from([0; 32])), "{\"type\":\"h\",\"policy\":\"0000000000000000000000000000000000000000000000000000000000000000\"}"),
(
(
SpendPolicy::threshold(
2,
vec![
SpendPolicy::public_key(PublicKey::new([0; 32])),
SpendPolicy::above(100),
],
),
),
"{\"type\":\"thresh\",\"policy\":{\"n\":2,\"of\":[{\"policy\":\"ed25519:0000000000000000000000000000000000000000000000000000000000000000\",\"type\":\"pk\"},{\"policy\":100,\"type\":\"above\"}]}}",
),
(
(
SpendPolicy::threshold(
2,
vec![
Expand All @@ -430,7 +430,7 @@ mod tests {
),
SpendPolicy::PublicKey(PublicKey::new([0; 32])),
],
),
),
"{\"type\":\"thresh\",\"policy\":{\"n\":2,\"of\":[{\"policy\":\"ed25519:0000000000000000000000000000000000000000000000000000000000000000\",\"type\":\"pk\"},{\"policy\":100,\"type\":\"above\"},{\"policy\":{\"n\":2,\"of\":[{\"policy\":\"ed25519:0000000000000000000000000000000000000000000000000000000000000000\",\"type\":\"pk\"},{\"policy\":100,\"type\":\"after\"}]},\"type\":\"thresh\"},{\"policy\":\"ed25519:0000000000000000000000000000000000000000000000000000000000000000\",\"type\":\"pk\"}]}}"
),
(
Expand Down

0 comments on commit b791206

Please sign in to comment.