Skip to content

Commit

Permalink
Tmp null IssuerId
Browse files Browse the repository at this point in the history
  • Loading branch information
thibault-martinez committed Nov 21, 2023
1 parent 50554a6 commit ce09c83
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions sdk/src/wallet/operations/transaction/submit_transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use crate::wallet::events::types::{TransactionProgressEvent, WalletEvent};
use crate::{
client::secret::{SecretManage, SignBlock},
types::block::{payload::Payload, BlockId},
types::block::{payload::Payload, BlockId, IssuerId},
wallet::{operations::transaction::SignedTransactionPayload, Error, Wallet},
};

Expand All @@ -23,7 +23,8 @@ where

let block = self
.client()
.build_basic_block(todo!("issuer id"), Some(Payload::from(transaction_payload)))
// TODO IssuerID
.build_basic_block(IssuerId::null(), Some(Payload::from(transaction_payload)))
.await?
.sign_ed25519(
&*self.get_secret_manager().read().await,
Expand All @@ -35,7 +36,9 @@ where
self.emit(WalletEvent::TransactionProgress(TransactionProgressEvent::Broadcasting))
.await;
let block_id = self.client().post_block(&block).await?;

log::debug!("[TRANSACTION] submitted block {}", block_id);

Ok(block_id)
}
}

0 comments on commit ce09c83

Please sign in to comment.