From 86157b2d241c9dd38c11707527d7d70e805686f1 Mon Sep 17 00:00:00 2001 From: Marco Granelli Date: Tue, 14 Nov 2023 17:05:27 +0100 Subject: [PATCH] Updates alias for masp native vp --- apps/src/lib/wallet/defaults.rs | 1 + core/src/types/address.rs | 1 + tests/src/e2e/setup.rs | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/src/lib/wallet/defaults.rs b/apps/src/lib/wallet/defaults.rs index e994203c88..71be346c70 100644 --- a/apps/src/lib/wallet/defaults.rs +++ b/apps/src/lib/wallet/defaults.rs @@ -73,6 +73,7 @@ mod dev { ("christel".into(), christel_address()), ("daewon".into(), daewon_address()), ("ester".into(), ester_address()), + ("masp".into(), namada::types::address::MASP), ] .into_iter() .collect(); diff --git a/core/src/types/address.rs b/core/src/types/address.rs index f865895f80..2543fc7f54 100644 --- a/core/src/types/address.rs +++ b/core/src/types/address.rs @@ -530,6 +530,7 @@ impl InternalAddress { "ethbridge" => Some(InternalAddress::EthBridge), "bridgepool" => Some(InternalAddress::EthBridgePool), "governance" => Some(InternalAddress::Governance), + "masp" => Some(InternalAddress::Masp), _ => None, } } diff --git a/tests/src/e2e/setup.rs b/tests/src/e2e/setup.rs index cda8422001..644110bba6 100644 --- a/tests/src/e2e/setup.rs +++ b/tests/src/e2e/setup.rs @@ -1092,7 +1092,6 @@ pub mod constants { pub const DAEWON_KEY: &str = "Daewon-key"; pub const ESTER: &str = "Ester"; pub const MATCHMAKER_KEY: &str = "matchmaker-key"; - pub const MASP: &str = "tnam1q9lm5pvkxhnw9wwwhu33vkvtylwfkn5kw53xwud8"; // Shielded spending and viewing keys and payment addresses pub const A_SPENDING_KEY: &str = "zsknam1qqqqqqqqqqqqqq9v0sls5r5de7njx8ehu49pqgmqr9ygelg87l5x8y4s9r0pjlvu69au6gn3su5ewneas486hdccyayx32hxvt64p3d0hfuprpgcgv2q9gdx3jvxrn02f0nnp3jtdd6f5vwscfuyum083cvfv4jun75ak5sdgrm2pthzj3sflxc0jx0edrakx3vdcngrfjmru8ywkguru8mxss2uuqxdlglaz6undx5h8w7g70t2es850g48xzdkqay5qs0yw06rtxc9q0cqr"; @@ -1115,6 +1114,7 @@ pub mod constants { // Native VP aliases pub const GOVERNANCE_ADDRESS: &str = "governance"; + pub const MASP: &str = "masp"; // Fungible token addresses pub const NAM: &str = "NAM";