Skip to content

Commit

Permalink
fmt and fix rust tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Agusrodri committed Oct 5, 2024
1 parent ba148c7 commit 1330cba
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 9 deletions.
2 changes: 1 addition & 1 deletion runtime/moonbeam/tests/integration_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2455,7 +2455,7 @@ fn precompile_existence() {
let precompile_addresses: std::collections::BTreeSet<_> = vec![
1, 2, 3, 4, 5, 6, 7, 8, 9, 256, 1024, 1025, 1026, 2048, 2049, 2050, 2051, 2052, 2053,
2054, 2055, 2056, 2057, 2058, 2059, 2060, 2061, 2062, 2063, 2064, 2065, 2066, 2067,
2068, 2069, 2070, 2071, 2072, 2073,
2068, 2069, 2070, 2071, 2072, 2073, 2074,
]
.into_iter()
.map(H160::from_low_u64_be)
Expand Down
2 changes: 1 addition & 1 deletion runtime/moonriver/tests/integration_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2367,7 +2367,7 @@ fn precompile_existence() {
let precompile_addresses: std::collections::BTreeSet<_> = vec![
1, 2, 3, 4, 5, 6, 7, 8, 9, 256, 1024, 1025, 1026, 2048, 2049, 2050, 2051, 2052, 2053,
2054, 2055, 2056, 2057, 2058, 2059, 2060, 2061, 2062, 2063, 2064, 2065, 2066, 2067,
2068, 2069, 2070, 2071, 2072, 2073,
2068, 2069, 2070, 2071, 2072, 2073, 2074,
]
.into_iter()
.map(H160::from_low_u64_be)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import "@moonbeam-network/api-augment";
import { beforeAll, describeSuite, fetchCompiledContract, expect } from "@moonwall/cli";
import { ALITH_ADDRESS, BALTATHAR_ADDRESS, alith, createEthersTransaction } from "@moonwall/util";
import { u128 } from "@polkadot/types-codec";
import { numberToHex } from "@polkadot/util"
import { numberToHex } from "@polkadot/util";
import { PalletAssetsAssetAccount, PalletAssetsAssetDetails } from "@polkadot/types/lookup";
import { encodeFunctionData } from "viem";
import { expectEVMResult, mockOldAssetBalance } from "../../../../helpers";
Expand Down Expand Up @@ -218,7 +218,7 @@ describeSuite({
const assetLocationInfo = [[assetLocation, amountToSend]];

// DestinationReserve
let assetsAndFeesTransferType = 2;
const assetsAndFeesTransferType = 2;

const message = {
V3: [
Expand All @@ -233,8 +233,14 @@ describeSuite({
to: PRECOMPILE_PALLET_XCM_ADDRESS,
data: encodeFunctionData({
abi: xcmInterface,
args: [dest, assetLocationInfo, assetsAndFeesTransferType, 0n, assetsAndFeesTransferType,
xcmOnDest.toHex()],
args: [
dest,
assetLocationInfo,
assetsAndFeesTransferType,
0n,
assetsAndFeesTransferType,
xcmOnDest.toHex(),
],
functionName: "transferAssetsUsingTypeAndThenLocation",
}),
gasLimit: 500_000n,
Expand Down Expand Up @@ -320,7 +326,7 @@ describeSuite({
const assetAddressInfo = [[ADDRESS_ERC20, amountToSend]];

// DestinationReserve
let assetsAndFeesTransferType = 2;
const assetsAndFeesTransferType = 2;

const message = {
V3: [
Expand All @@ -335,8 +341,14 @@ describeSuite({
to: PRECOMPILE_PALLET_XCM_ADDRESS,
data: encodeFunctionData({
abi: xcmInterface,
args: [dest, assetAddressInfo, assetsAndFeesTransferType, 0n, assetsAndFeesTransferType,
xcmOnDest.toHex()],
args: [
dest,
assetAddressInfo,
assetsAndFeesTransferType,
0n,
assetsAndFeesTransferType,
xcmOnDest.toHex(),
],
functionName: "transferAssetsUsingTypeAndThenAddress",
}),
gasLimit: 500_000n,
Expand Down

0 comments on commit 1330cba

Please sign in to comment.