Skip to content

Commit

Permalink
substrate node ifx
Browse files Browse the repository at this point in the history
  • Loading branch information
Freddy Li authored and Freddy Li committed Aug 1, 2024
1 parent 1ee8489 commit 6660c96
Show file tree
Hide file tree
Showing 17 changed files with 237 additions and 323 deletions.
2 changes: 1 addition & 1 deletion .github/actions/install_toolchain/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ runs:
- name: Install latest nightly
uses: actions-rs/toolchain@v1
with:
toolchain: 1.74.0
toolchain: 1.79.0
override: true
target: wasm32-unknown-unknown
components: rustfmt
Expand Down
73 changes: 38 additions & 35 deletions Cargo.lock

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

2 changes: 0 additions & 2 deletions access-segregator/src/mock.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// The Licensed Work is (c) 2022 Sygma
// SPDX-License-Identifier: LGPL-3.0-only

#![cfg(test)]

use frame_support::{
pallet_prelude::ConstU32,
parameter_types,
Expand Down
2 changes: 0 additions & 2 deletions basic-fee-handler/src/mock.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// The Licensed Work is (c) 2022 Sygma
// SPDX-License-Identifier: LGPL-3.0-only

#![cfg(test)]

use frame_support::{
pallet_prelude::ConstU32,
parameter_types,
Expand Down
2 changes: 0 additions & 2 deletions bridge-forwarder/src/mock.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// The Licensed Work is (c) 2022 Sygma
// SPDX-License-Identifier: LGPL-3.0-only

#![cfg(test)]

use cumulus_primitives_core::ParaId;

use std::marker::PhantomData;
Expand Down
6 changes: 3 additions & 3 deletions bridge/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,7 @@ pub mod pallet {
}
}

let final_keccak_data_input = &vec![SolidityDataType::Bytes(&final_keccak_data)];
let final_keccak_data_input = &[SolidityDataType::Bytes(&final_keccak_data)];
let bytes = encode_packed(final_keccak_data_input);
let hashed_keccak_data = keccak_256(bytes.as_slice());

Expand All @@ -808,7 +808,7 @@ pub mod pallet {
};
let domain_separator = eip712_domain.separator();

let typed_data_hash_input = &vec![
let typed_data_hash_input = &[
SolidityDataType::String("\x19\x01"),
SolidityDataType::Bytes(&domain_separator),
SolidityDataType::Bytes(&struct_hash),
Expand Down Expand Up @@ -847,7 +847,7 @@ pub mod pallet {
/// recipient data bytes bytes 64 - END
///
/// Only fungible transfer is supported so far.
fn extract_deposit_data(data: &Vec<u8>) -> Result<(u128, Location), DispatchError> {
fn extract_deposit_data(data: &[u8]) -> Result<(u128, Location), DispatchError> {
if data.len() < 64 {
return Err(Error::<T>::InvalidDepositDataInvalidLength.into());
}
Expand Down
2 changes: 0 additions & 2 deletions bridge/src/mock.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// The Licensed Work is (c) 2022 Sygma
// SPDX-License-Identifier: LGPL-3.0-only

#![cfg(test)]

use crate as sygma_bridge;
use fixed::{types::extra::U16, FixedU128};
use frame_support::{
Expand Down
2 changes: 0 additions & 2 deletions fee-handler-router/src/mock.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// The Licensed Work is (c) 2022 Sygma
// SPDX-License-Identifier: LGPL-3.0-only

#![cfg(test)]

use frame_support::{
pallet_prelude::ConstU32,
parameter_types,
Expand Down
2 changes: 0 additions & 2 deletions percentage-fee-handler/src/mock.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// The Licensed Work is (c) 2022 Sygma
// SPDX-License-Identifier: LGPL-3.0-only

#![cfg(test)]

use frame_support::{
pallet_prelude::ConstU32,
parameter_types,
Expand Down
Loading

0 comments on commit 6660c96

Please sign in to comment.