Skip to content

Commit 11630ce

Browse files
committed
net: fix outdated kns NamehashToName request type
1 parent 750a6a6 commit 11630ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/net.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ pub enum IndexerRequests {
128128
#[derive(Clone, Debug, Serialize, Deserialize, Hash, Eq, PartialEq)]
129129
pub struct NamehashToNameRequest {
130130
pub hash: String,
131-
pub block: Option<u64>,
131+
pub block: u64,
132132
}
133133

134134
/// Response from `kns-indexer:kns-indexer:sys`.
@@ -226,7 +226,7 @@ where
226226
.body(
227227
serde_json::to_vec(&IndexerRequests::NamehashToName(NamehashToNameRequest {
228228
hash: namehash.into(),
229-
block,
229+
block: block.unwrap_or(0),
230230
}))
231231
.unwrap(),
232232
)

0 commit comments

Comments
 (0)