Skip to content

Commit

Permalink
Use last Rust SDK and delete traces
Browse files Browse the repository at this point in the history
  • Loading branch information
yogh333 committed Sep 26, 2024
1 parent bd982f5 commit eeba855
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 20 deletions.
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions starknet/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ edition = "2021"
authors = ["Ledger"]

[dependencies]
ledger_device_sdk = "1.16.0"
ledger_secure_sdk_sys = { version = "1.4.6", features = ["heap"]}
ledger_device_sdk = "1.16.1"
ledger_secure_sdk_sys = { version = "1.4.7", features = ["heap"]}
include_gif = "1.2.0"
hex = { version = "0.4", default-features = false, features = ["alloc"]}
num-bigint = { version = "0.4", default-features = false }
Expand Down
14 changes: 0 additions & 14 deletions starknet/src/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,6 @@ pub fn set_tx_fields_v1(data: &[u8], tx: &mut Transaction) {
tx.max_fee = iter.next().unwrap().into();
tx.chain_id = iter.next().unwrap().into();
tx.nonce = iter.next().unwrap().into();

ledger_device_sdk::testing::debug_print("set_tx_fields_v1:\n");
ledger_device_sdk::testing::debug_print("sender_address: ");
ledger_device_sdk::testing::debug_print(&tx.sender_address.to_hex_string());
ledger_device_sdk::testing::debug_print("\n");
ledger_device_sdk::testing::debug_print("max_fee: ");
ledger_device_sdk::testing::debug_print(&tx.max_fee.to_dec_string(None));
ledger_device_sdk::testing::debug_print("\n");
ledger_device_sdk::testing::debug_print("chain_id: ");
ledger_device_sdk::testing::debug_print(&tx.chain_id.to_hex_string());
ledger_device_sdk::testing::debug_print("\n");
ledger_device_sdk::testing::debug_print("nonce: ");
ledger_device_sdk::testing::debug_print(&tx.nonce.to_dec_string(None));
ledger_device_sdk::testing::debug_print("\n");
}

// For future use: currently paymaster_data is always empty.
Expand Down

0 comments on commit eeba855

Please sign in to comment.