Skip to content

Commit

Permalink
change amount in trezor test
Browse files Browse the repository at this point in the history
  • Loading branch information
dimxy committed Nov 15, 2023
1 parent a8b385a commit f760b74
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion mm2src/mm2_main/tests/mm2_tests/mm2_tests_inner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8093,6 +8093,8 @@ pub fn eth_my_balance() {
#[ignore]
#[cfg(all(not(target_arch = "wasm32")))]
fn test_eth_withdraw_from_trezor_no_rpc() {
use std::convert::TryInto;

use coins::WithdrawFee;

let ticker = "ETH";
Expand Down Expand Up @@ -8142,7 +8144,7 @@ fn test_eth_withdraw_from_trezor_no_rpc() {
"m/44'/1'/0'/0/0",
Some(WithdrawFee::EthGas {
gas: ETH_GAS,
gas_price: 100_000_000_000_i64.into(),
gas_price: 0.1_f32.try_into().unwrap(),
}),
))
.expect("withdraw must end successfully");
Expand Down
4 changes: 2 additions & 2 deletions mm2src/mm2_test_helpers/src/for_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -745,7 +745,7 @@ pub fn eth_sepolia_conf() -> Json {
json!({
"coin": "ETH",
"name": "ethereum",
"derivation_path": "m/44'/60'", // Note: 'coin type' for eth main and testnet are the same
"derivation_path": "m/44'/60'",
"chain_id": 11155111,
"protocol": {
"type": "ETH"
Expand All @@ -758,7 +758,7 @@ pub fn eth_sepolia_trezor_firmware_compat_conf() -> Json {
json!({
"coin": "ETH",
"name": "ethereum",
"derivation_path": "m/44'/1'", // Note: trezor use coin type 1' for eth for testnet (SLIP44_TESTNET)
"derivation_path": "m/44'/1'", // Note: trezor uses coin type 1' for eth for testnet (SLIP44_TESTNET)
"chain_id": 11155111,
"protocol": {
"type": "ETH"
Expand Down

0 comments on commit f760b74

Please sign in to comment.