Skip to content

Commit

Permalink
Merge branch 'vm-language/stardust-models-docs' into vm-language/star…
Browse files Browse the repository at this point in the history
…dust-docs-self-sponsor
  • Loading branch information
miker83z committed Aug 14, 2024
2 parents 300af0d + c0d46d1 commit 20d1220
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions docs/examples/rust/stardust/shimmer-self-sponsor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ const MAIN_ADDRESS_MNEMONIC: &str = "crazy drum raw dirt tooth where fee base wa

/// Creates a temporary keystore
fn setup_keystore() -> Result<FileBasedKeystore, anyhow::Error> {
// Create a temporary keystore
let keystore_path = PathBuf::from("iotatempdb");
if !keystore_path.exists() {
let keystore = FileBasedKeystore::new(&keystore_path)?;
Expand Down Expand Up @@ -177,11 +176,9 @@ async fn main() -> Result<(), anyhow::Error> {
sponsor,
);

// Client side, i.e., the sender POV
// Sender signs the transaction
let sender_signature = keystore.sign_secure(&sender, &tx_data, Intent::iota_transaction())?;

// Server side, i.e., the sponsor POV
// Sponsor signs the transaction
let sponsor_signature = keystore.sign_secure(&sponsor, &tx_data, Intent::iota_transaction())?;

Expand Down

0 comments on commit 20d1220

Please sign in to comment.