Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix metadata module index
  • Loading branch information
Alain Brenzikofer committed Nov 1, 2020
commit 67ff33a3a5f694e31694e0303f039bbe7fc10ace
5 changes: 2 additions & 3 deletions enclave/src/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,8 @@ pub static RA_SPID_FILE: &str = "../bin/spid.txt";
pub static RA_API_KEY_FILE: &str = "../bin/key.txt";

// you may have to update these indices upon new builds of the runtime
// you can get the index from metadata
// when counting modules, make sure to only count those that have calls.
pub static SUBSRATEE_REGISTRY_MODULE: u8 = 6u8;
// you can get the index from metadata, counting modules starting with zero
pub static SUBSRATEE_REGISTRY_MODULE: u8 = 8u8;
pub static REGISTER_ENCLAVE: u8 = 0u8;
//pub static UNREGISTER_ENCLAVE: u8 = 1u8;
pub static CALL_WORKER: u8 = 2u8;
Expand Down
2 changes: 1 addition & 1 deletion stf/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ pub type Balance = u128;
pub type BalanceTransferFn = ([u8; 2], AccountId, Compact<u128>);
pub static BALANCE_MODULE: u8 = 4u8;
pub static BALANCE_TRANSFER: u8 = 0u8;
pub static SUBSRATEE_REGISTRY_MODULE: u8 = 6u8;
pub static SUBSRATEE_REGISTRY_MODULE: u8 = 8u8;
pub static UNSHIELD: u8 = 5u8;
pub static CALL_CONFIRMED: u8 = 3u8;

Expand Down