Skip to content

Commit 135421e

Browse files
chore(sc-hop): no longer return hash on submit
1 parent 9fea505 commit 135421e

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

substrate/client/hop/src/rpc.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,9 @@ where
141141

142142
// We need the current block number to know when the timeout is reached.
143143
let current_block = self.client.info().best_number.saturated_into::<u32>();
144-
let hash = self.pool.insert(data.0, current_block, recipient_keys, alias)?;
144+
let _hash = self.pool.insert(data.0, current_block, recipient_keys, alias)?;
145145
let pool_status = self.pool.status();
146-
Ok(SubmitResult { hash: Bytes(hash.0.to_vec()), pool_status })
146+
Ok(SubmitResult { pool_status })
147147
}
148148

149149
fn claim(&self, hash: Bytes, signature: Bytes) -> RpcResult<Bytes> {

substrate/client/hop/src/types.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,6 @@ pub struct PoolStatus {
113113
#[derive(Debug, Clone, Serialize, Deserialize)]
114114
#[serde(rename_all = "camelCase")]
115115
pub struct SubmitResult {
116-
/// The content hash of the submitted data
117-
pub hash: sp_core::Bytes,
118116
/// Current pool status after the submission
119117
pub pool_status: PoolStatus,
120118
}

0 commit comments

Comments
 (0)