Skip to content

Commit

Permalink
fix(cli): Update default evm id
Browse files Browse the repository at this point in the history
  • Loading branch information
servalD authored and Nuttymoon committed Feb 9, 2024
1 parent ed56cb4 commit edea176
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions crates/ash_sdk/src/avalanche/blockchains.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,12 +171,12 @@ impl From<Blockchain> for AvalancheBlockchain {
#[cfg(test)]
mod tests {
use super::*;
use crate::avalanche::{vms::encode_genesis_data, AvalancheNetwork, AvalancheSubnet};
use crate::avalanche::{vms::encode_genesis_data, AvalancheNetwork, AvalancheSubnet, vms::subnet_evm::AVAX_SUBNET_EVM_ID};
use std::{env, fs, str::FromStr};

const AVAX_EWOQ_PRIVATE_KEY: &str =
"PrivateKey-ewoqjP7PxY4yr3iLTpLisriqt94hdyDFNgchSxGGztUrTXtNN";
const SUBNET_EVM_VM_ID: &str = "spePNvBxaWSYL2tB5e2xMmMNBQkXMN8z2XEbz1ML2Aahatwoc";
const SUBNET_EVM_VM_ID: &str = AVAX_SUBNET_EVM_ID;

// Load the test network from the ASH_TEST_CONFIG file
fn load_test_network() -> AvalancheNetwork {
Expand Down
4 changes: 2 additions & 2 deletions crates/ash_sdk/src/avalanche/txs/p.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ pub async fn add_avalanche_validator(
mod tests {
use super::*;
use crate::avalanche::{
vms::{encode_genesis_data, AvalancheVmType},
vms::{encode_genesis_data, AvalancheVmType, subnet_evm::AVAX_SUBNET_EVM_ID},
AvalancheNetwork,
};
use chrono::Duration;
Expand All @@ -173,7 +173,7 @@ mod tests {
const AVAX_EWOQ_PRIVATE_KEY: &str =
"PrivateKey-ewoqjP7PxY4yr3iLTpLisriqt94hdyDFNgchSxGGztUrTXtNN";
const NETWORK_RUNNER_PCHAIN_ADDR: &str = "P-custom18jma8ppw3nhx5r4ap8clazz0dps7rv5u9xde7p";
const SUBNET_EVM_VM_ID: &str = "spePNvBxaWSYL2tB5e2xMmMNBQkXMN8z2XEbz1ML2Aahatwoc";
const SUBNET_EVM_VM_ID: &str = AVAX_SUBNET_EVM_ID;
const NETWORK_RUNNER_NODE_ID: &str = "NodeID-7Xhw2mDxuDS44j42TCB6U5579esbSt3Lg";

// Load the test network using avalanche-network-runner
Expand Down
2 changes: 1 addition & 1 deletion crates/ash_sdk/src/avalanche/vms/subnet_evm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use crate::errors::*;
use avalanche_types::subnet_evm::genesis::Genesis;

/// Known ID for the Subnet-EVM
pub const AVAX_SUBNET_EVM_ID: &str = "spePNvBxaWSYL2tB5e2xMmMNBQkXMN8z2XEbz1ML2Aahatwoc";
pub const AVAX_SUBNET_EVM_ID: &str = "srEXiWaHuhNyGwPUi444Tu47ZEDwxTWrbQiuD7FmgSAQ6X7Dy";

/// Encode the genesis data (JSON) to bytes
pub fn encode_genesis_data(genesis_json: &str) -> Result<Vec<u8>, AshError> {
Expand Down

0 comments on commit edea176

Please sign in to comment.