Skip to content

Commit 4679c39

Browse files
committed
code comments
1 parent f483435 commit 4679c39

File tree

1 file changed

+2
-1
lines changed
  • crates/core/component/funding/src/component

1 file changed

+2
-1
lines changed

crates/core/component/funding/src/component/view.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ pub trait StateReadExt: StateRead {
1616
.ok_or_else(|| anyhow::anyhow!("Missing FundingParameters"))
1717
}
1818

19-
/// Gets the funding module chain parameters from the JMT.
19+
/// Gets the transaction id associated with the given nullifier from the JMT.
2020
async fn get_txid_from_nullifier(&self, nullifier: Nullifier) -> Option<TransactionId> {
2121
// Grab the ambient epoch index.
2222
let epoch_index = self
@@ -45,6 +45,7 @@ pub trait StateWriteExt: StateWrite + StateReadExt {
4545
self.put(state_key::staking_funding_parameters().into(), params)
4646
}
4747

48+
// Sets the LQT nullifier in the JMT.
4849
fn put_lqt_nullifier(&mut self, epoch_index: u64, nullifier: Nullifier, tx_id: TransactionId) {
4950
let nullifier_key = state_key::lqt_nullifier_lookup_for_txid(epoch_index, &nullifier);
5051

0 commit comments

Comments
 (0)