Skip to content

Commit 72384ab

Browse files
authored
docs(wasm-dpp): document no-op user fee increase methods on vote transition (#3209)
Co-authored-by: PastaClaw <thepastaclaw@users.noreply.github.com>
1 parent 16b4d3f commit 72384ab

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • packages/wasm-dpp/src/voting/state_transition/masternode_vote_transition

‎packages/wasm-dpp/src/voting/state_transition/masternode_vote_transition/mod.rs‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,11 +223,15 @@ impl MasternodeVoteTransitionWasm {
223223
self.0.is_voting_state_transition()
224224
}
225225

226+
/// Masternode vote transitions do not support user fee increase; always returns 0.
227+
/// This method is kept for API compatibility.
226228
#[wasm_bindgen(js_name=getUserFeeIncrease)]
227229
pub fn get_user_fee_increase(&self) -> u16 {
228230
0
229231
}
230232

233+
/// Masternode vote transitions do not support user fee increase.
234+
/// This method is kept for API compatibility and intentionally does nothing.
231235
#[wasm_bindgen(js_name=setUserFeeIncrease)]
232236
pub fn set_user_fee_increase(&mut self, _user_fee_increase: u16) {}
233237

0 commit comments

Comments
 (0)