Skip to content

Commit 750a6a6

Browse files
committed
kimap: fix tokenId to namehash conversion
1 parent bd3230b commit 750a6a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/kimap.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -557,8 +557,8 @@ impl Kimap {
557557
let res = tokenCall::abi_decode_returns(&res_bytes, false)
558558
.map_err(|_| EthError::RpcMalformedResponse)?;
559559

560-
let bytes = res.tokenId.to_be_bytes::<32>();
561-
Ok(format!("0x{}", hex::encode(bytes)))
560+
let namehash: FixedBytes<32> = res.tokenId.into();
561+
Ok(format!("0x{}", hex::encode(namehash)))
562562
}
563563

564564
/// Create a filter for all mint events.

0 commit comments

Comments
 (0)