Skip to content

Commit

Permalink
Release pango-6402 (#1256)
Browse files Browse the repository at this point in the history
  • Loading branch information
AurevoirXavier authored Sep 6, 2023
1 parent 2f0941d commit adb83a5
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 14 deletions.
2 changes: 1 addition & 1 deletion pallet/asset-limit/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ pub mod pallet {
Error::<T>::AssetDoesNotExist
);

ForeignAssetLimit::<T>::insert(&asset_type, &units_limit);
ForeignAssetLimit::<T>::insert(&asset_type, units_limit);

Self::deposit_event(Event::AssetLimitChanged { asset_type, units_limit });
Ok(())
Expand Down
5 changes: 3 additions & 2 deletions runtime/pangolin/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ codec = { workspace = true, package = "parity-scale-codec" }
scale-info = { workspace = true }
static_assertions = { workspace = true }
# crates.io optional
array-bytes = { workspace = true, optional = true }
array-bytes = { workspace = true }
# array-bytes = { workspace = true, optional = true }

# cumulus
cumulus-pallet-aura-ext = { workspace = true }
Expand Down Expand Up @@ -283,7 +284,7 @@ on-chain-release-build = [

runtime-benchmarks = [
# crates.io
"array-bytes",
# "array-bytes",

# cumulus
"cumulus-pallet-parachain-system/runtime-benchmarks",
Expand Down
2 changes: 1 addition & 1 deletion runtime/pangolin/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ pub const VERSION: sp_version::RuntimeVersion = sp_version::RuntimeVersion {
spec_name: sp_runtime::create_runtime_str!("Pangolin2"),
impl_name: sp_runtime::create_runtime_str!("DarwiniaOfficialRust"),
authoring_version: 0,
spec_version: 6_4_0_1,
spec_version: 6_4_0_2,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 0,
Expand Down
11 changes: 2 additions & 9 deletions runtime/pangolin/src/migration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,9 @@ impl frame_support::traits::OnRuntimeUpgrade for CustomOnRuntimeUpgrade {
}

fn migrate() -> frame_support::weights::Weight {
// substrate
use sp_core::H160;
use sp_std::str::FromStr;

const REVERT_BYTECODE: [u8; 5] = [0x60, 0x00, 0x60, 0x00, 0xFD];
const USDT_ADDRESS: &str = "0x0000000000000000000000000000000000000403";

EVM::create_account(
H160::from_str(USDT_ADDRESS).expect("USDT_ADDRESS is not a valid address"),
REVERT_BYTECODE.to_vec(),
array_bytes::hex_n_into_unchecked("0x0000000000000000000000000000000000000403"),
vec![0x60, 0x00, 0x60, 0x00, 0xFD],
);

// frame_support::weights::Weight::zero()
Expand Down
2 changes: 1 addition & 1 deletion runtime/pangoro/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ pub const VERSION: sp_version::RuntimeVersion = sp_version::RuntimeVersion {
spec_name: sp_runtime::create_runtime_str!("Pangoro2"),
impl_name: sp_runtime::create_runtime_str!("DarwiniaOfficialRust"),
authoring_version: 0,
spec_version: 6_4_0_1,
spec_version: 6_4_0_2,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 0,
Expand Down

0 comments on commit adb83a5

Please sign in to comment.