Skip to content

Commit

Permalink
chore(js-sdk): cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
pshenmic committed Dec 24, 2024
1 parent fbe5dbc commit 8f79b69
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/wasm-dpp/src/document/extended_document.rs
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,8 @@ impl ExtendedDocumentWasm {
.set_created_at(ts.map(|t| t.get_time() as TimestampMillis));
}

#[wasm_bindgen(js_name=createTransferTransition)]
pub fn create_transfer_transition(&mut self, recipient: IdentifierWrapper, identity_contract_nonce: IdentityNonce) -> DocumentsBatchTransitionWasm {
#[wasm_bindgen(js_name=createTransferStateTransition)]
pub fn create_transfer_state_transition(&mut self, recipient: IdentifierWrapper, identity_contract_nonce: IdentityNonce) -> DocumentsBatchTransitionWasm {
let mut cloned_document = self.0.document().clone();

cloned_document.set_revision(Some(cloned_document.revision().unwrap() + 1));
Expand All @@ -246,7 +246,7 @@ impl ExtendedDocumentWasm {
cloned_document,
self.0.document_type().unwrap(),
identity_contract_nonce,
recipient.try_into().expect("identity into failed"),
recipient.into(),
PlatformVersion::latest(),
None,
None,
Expand All @@ -258,9 +258,9 @@ impl ExtendedDocumentWasm {
user_fee_increase: Default::default(),
signature_public_key_id: Default::default(),
signature: Default::default(),
}.try_into().expect("Failed to convert into DocumentsBatchTransition");
}.into();

documents_batch_transition.try_into().expect("Failed to convert into DocumentsBatchTransitionWasm")
documents_batch_transition.into()
}

#[wasm_bindgen(js_name=setUpdatedAt)]
Expand Down

0 comments on commit 8f79b69

Please sign in to comment.