Skip to content

Commit

Permalink
chore: compile fix and fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
dj8yf0μl committed Jan 25, 2024
1 parent ffc181d commit 350ed9d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/common/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ use std::str::FromStr;

use ed25519_dalek::Signature;
use ed25519_dalek::Verifier;
use near_primitives_core::{borsh, borsh::BorshSerialize, hash::CryptoHash, types::AccountId};
use near_ledger::NEARLedgerError;
use near_primitives_core::{borsh, borsh::BorshSerialize, hash::CryptoHash, types::AccountId};
use slip10::BIP32Path;

pub fn display_pub_key(public_key: ed25519_dalek::PublicKey) {
Expand Down
1 change: 1 addition & 0 deletions examples/sign_transaction/delete_account_long.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ use near_ledger::NEARLedgerError;
#[path = "../common/lib.rs"]
mod common;

#[allow(deprecated)]
fn tx(ledger_pub_key: ed25519_dalek::PublicKey) -> near_primitives::transaction::Transaction {
let mut tx = common::tx_template(ledger_pub_key);
tx.actions = vec![near_primitives::transaction::Action::DeleteAccount(
Expand Down
4 changes: 2 additions & 2 deletions examples/sign_transaction/delete_key_ed25519.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ fn tx(ledger_pub_key: ed25519_dalek::PublicKey) -> near_primitives::transaction:
&format!("{:?}", ledger_pub_key),
);
let public_key = sk.public_key();
tx.actions = vec![near_primitives::transaction::Action::DeleteKey(
tx.actions = vec![near_primitives::transaction::Action::DeleteKey(Box::new(
near_primitives::transaction::DeleteKeyAction { public_key },
)];
))];
tx
}

Expand Down
4 changes: 2 additions & 2 deletions examples/sign_transaction/delete_key_secp256k1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ fn tx(ledger_pub_key: ed25519_dalek::PublicKey) -> near_primitives::transaction:
&format!("{:?}", ledger_pub_key),
);
let public_key = sk.public_key();
tx.actions = vec![near_primitives::transaction::Action::DeleteKey(
tx.actions = vec![near_primitives::transaction::Action::DeleteKey(Box::new(
near_primitives::transaction::DeleteKeyAction { public_key },
)];
))];
tx
}

Expand Down

0 comments on commit 350ed9d

Please sign in to comment.