15 lines
766 B
Diff
15 lines
766 B
Diff
# must fail: regeneration
|
|
# no joule ceiling written as 2^64 - 1 (wai_video_manifest::grant_json)
|
|
diff --git a/wai/wai-rs/src/wai_video_manifest.rs b/wai/wai-rs/src/wai_video_manifest.rs
|
|
index a7574e49..41275c34 100644
|
|
--- a/wai/wai-rs/src/wai_video_manifest.rs
|
|
+++ b/wai/wai-rs/src/wai_video_manifest.rs
|
|
@@ -199,7 +199,7 @@ fn numbers_within(v: &serde_json::Value) -> bool {
|
|
pub fn grant_json(g: &GrantRef) -> serde_json::Value {
|
|
serde_json::json!({
|
|
"grant_hash": hex(&g.grant_hash), "capability": g.capability,
|
|
- "joule_ceiling_micro": (g.joule_ceiling_micro != u64::MAX).then_some(g.joule_ceiling_micro), "funds_ceiling": g.funds_ceiling,
|
|
+ "joule_ceiling_micro": g.joule_ceiling_micro, "funds_ceiling": g.funds_ceiling,
|
|
})
|
|
}
|
|
|