From 07327cad5ae1f5a9a763bac2f3f06354777941dd Mon Sep 17 00:00:00 2001 From: Gleb Urvanov Date: Wed, 2 Dec 2020 19:42:49 +0100 Subject: [PATCH] hardcoded test contracts addresses --- primitives/core/src/registry.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/primitives/core/src/registry.rs b/primitives/core/src/registry.rs index a540b22e18896..4cc86115b5b6a 100644 --- a/primitives/core/src/registry.rs +++ b/primitives/core/src/registry.rs @@ -1,5 +1,6 @@ use crate::types::AppId; +use sp_std::convert::TryInto; /// Short identifer for an application. #[derive(Copy, Clone)] @@ -14,14 +15,15 @@ struct Entry { pub id: AppId, } +// FIXME add app ids as constants in readable format static APP_REGISTRY: &[Entry] = &[ Entry { app: App::ETH, - id: include!(concat!(env!("OUT_DIR"), "/eth_app_id.rs")), + id: [0xdd, 0x51, 0x4b, 0xaa, 0x31, 0x7b, 0xf0, 0x95, 0xdd, 0xba, 0x2c, 0x0a, 0x84, 0x77, 0x65, 0xfe, 0xb3, 0x89, 0xc6, 0xa0], }, Entry { app: App::ERC20, - id: include!(concat!(env!("OUT_DIR"), "/erc20_app_id.rs")), + id: [0x00, 0xe3, 0x92, 0xc0, 0x47, 0x43, 0x35, 0x9e, 0x39, 0xf0, 0x0c, 0xd2, 0x68, 0xa5, 0x39, 0x0d, 0x27, 0xef, 0x6b, 0x44], } ];