Skip to content

Commit

Permalink
clippy&taplo
Browse files Browse the repository at this point in the history
  • Loading branch information
brenzi committed Oct 25, 2024
1 parent 1004fb1 commit e5680ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app-libs/stf/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ sha3 = { version = "0.10", default-features = false }
sgx_tstd = { branch = "master", features = ["untrusted_fs", "net", "backtrace"], git = "https://github.com/apache/teaclave-sgx-sdk.git", optional = true }

# local crates
ita-sgx-runtime = { default-features = false, path = "../sgx-runtime" }
ita-parentchain-specs = { default-features = false, path = "../parentchain-specs" }
ita-sgx-runtime = { default-features = false, path = "../sgx-runtime" }
itp-hashing = { default-features = false, path = "../../core-primitives/hashing" }
itp-node-api = { default-features = false, path = "../../core-primitives/node-api" }
itp-node-api-metadata = { default-features = false, path = "../../core-primitives/node-api/metadata" }
Expand Down
4 changes: 2 additions & 2 deletions app-libs/stf/src/trusted_call.rs
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ where
Ok::<(), Self::Error>(())
},
TrustedCall::balance_transfer(from, to, value) => {
let origin = ita_sgx_runtime::RuntimeOrigin::signed(from.clone());
let origin = ita_sgx_runtime::RuntimeOrigin::signed(from);
std::println!("⣿STF⣿ 🔄 balance_transfer from ⣿⣿⣿ to ⣿⣿⣿ amount ⣿⣿⣿");
ita_sgx_runtime::BalancesCall::<Runtime>::transfer {
dest: MultiAddress::Id(to),
Expand Down Expand Up @@ -573,7 +573,7 @@ fn get_fee_for(tc: &TrustedCallSigned) -> Balance {
match &tc.call {
TrustedCall::balance_transfer(..) => one / crate::STF_TX_FEE_UNIT_DIVIDER,
TrustedCall::balance_unshield(..) => one / crate::STF_TX_FEE_UNIT_DIVIDER * 3,
TrustedCall::guess_the_number(call) => crate::guess_the_number::get_fee_for(&call),
TrustedCall::guess_the_number(call) => crate::guess_the_number::get_fee_for(call),
_ => Balance::from(0u32),
}
}
Expand Down

0 comments on commit e5680ce

Please sign in to comment.