Skip to content

Commit 8a37272

Browse files
committed
docs(streaming): add struct and field-level doc comments to CreateStreamParams (closes #473)
1 parent 64227da commit 8a37272

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎contracts/streaming/src/lib.rs‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -281,8 +281,6 @@ pub struct UnpauseEvent {
281281
pub timestamp: u64,
282282
}
283283

284-
285-
286284
// ─── Contract ────────────────────────────────────────────────────────────────
287285

288286
#[contract]
@@ -358,7 +356,11 @@ impl StreamingContract {
358356
/// Upgrade the contract wasm. Only callable by the admin.
359357
pub fn upgrade(env: Env, admin: Address, new_wasm_hash: BytesN<32>) -> Result<(), StreamError> {
360358
admin.require_auth();
361-
let stored_admin: Address = env.storage().instance().get(&DataKey::Admin).ok_or(StreamError::NotInitialized)?;
359+
let stored_admin: Address = env
360+
.storage()
361+
.instance()
362+
.get(&DataKey::Admin)
363+
.ok_or(StreamError::NotInitialized)?;
362364
if admin != stored_admin {
363365
return Err(StreamError::Unauthorized);
364366
}
@@ -976,8 +978,6 @@ impl StreamingContract {
976978
Ok(())
977979
}
978980

979-
980-
981981
// ── Read: Stream data ────────────────────────────────────────────────────
982982

983983
/// Get a stream by ID.

0 commit comments

Comments
 (0)