Skip to content

Commit

Permalink
apply changes to Erc20Match
Browse files Browse the repository at this point in the history
  • Loading branch information
Agusrodri committed May 17, 2024
1 parent ae2109e commit 627410d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
30 changes: 15 additions & 15 deletions Cargo.lock

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

6 changes: 3 additions & 3 deletions runtime/moonbase/src/precompiles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ use crate::{
xcm_config::{AssetType, XcmExecutorConfig},
OpenTechCommitteeInstance, TreasuryCouncilInstance,
};
use crate::{AccountId, AssetId, AssetManager, Balances, Runtime, H160};
use crate::{AccountId, AssetId, AssetManager, Balances, Erc20XcmBridge, Runtime, H160};
use frame_support::parameter_types;
use moonkit_xcm_primitives::{
location_matcher::{Erc20PalletMatcher, ForeignAssetMatcher, SingleAddressMatcher},
Expand Down Expand Up @@ -112,8 +112,8 @@ type SingleAddressMatch = SingleAddressMatcher<AccountId, ERC20_BALANCES_PRECOMP
// Type that matches an AccountId with a foreign asset address (if any)
type ForeignAssetMatch = ForeignAssetMatcher<AccountId, AssetId, Runtime, AssetIdToLocationManager>;

// Erc20XcmBridge pallet index = 48
type Erc20Match = Erc20PalletMatcher<AccountId, 48>;
// Erc20XcmBridge pallet is used to match ERC20s
type Erc20Match = Erc20PalletMatcher<AccountId, Erc20XcmBridge>;

#[precompile_utils::precompile_name_from_address]
type MoonbasePrecompilesAt<R> = (
Expand Down

0 comments on commit 627410d

Please sign in to comment.