Skip to content

Commit

Permalink
hardcoded test contracts addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
gleb-urvanov committed Dec 2, 2020
1 parent d46a818 commit 07327ca
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions primitives/core/src/registry.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@

use crate::types::AppId;
use sp_std::convert::TryInto;

/// Short identifer for an application.
#[derive(Copy, Clone)]
Expand All @@ -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],
}
];

Expand Down

0 comments on commit 07327ca

Please sign in to comment.