From 711463ae9e167fb7627f5f88e43902a4b4747bdb Mon Sep 17 00:00:00 2001 From: pshenmic Date: Thu, 19 Dec 2024 02:07:28 +0700 Subject: [PATCH] chore(wasm-dpp): fix nonce method naming in credit withdrawals --- .../identity_credit_transfer_transition/transition.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/wasm-dpp/src/identity/state_transition/identity_credit_transfer_transition/transition.rs b/packages/wasm-dpp/src/identity/state_transition/identity_credit_transfer_transition/transition.rs index 4f5139c1f1..e20ec98b87 100644 --- a/packages/wasm-dpp/src/identity/state_transition/identity_credit_transfer_transition/transition.rs +++ b/packages/wasm-dpp/src/identity/state_transition/identity_credit_transfer_transition/transition.rs @@ -109,14 +109,14 @@ impl IdentityCreditTransferTransitionWasm { self.0.set_user_fee_increase(user_fee_increase); } - #[wasm_bindgen(js_name=getIdentityContractNonce)] - pub fn get_identity_nonce(&self) -> u64 { + #[wasm_bindgen(js_name=getNonce)] + pub fn get_nonce(&self) -> u64 { self.0.nonce() } - #[wasm_bindgen(js_name=setIdentityContractNonce)] - pub fn set_identity_contract_nonce(&mut self, identity_nonce: u64) -> () { - self.0.set_nonce(identity_nonce) + #[wasm_bindgen(js_name=setNonce)] + pub fn set_nonce(&mut self, nonce: u64) -> () { + self.0.set_nonce(nonce) } #[wasm_bindgen(js_name=toObject)]