Correct governance header module

Change-Id: Ib2ebfeedab0bf40c466def0a58a6f3971db81dfc
This commit is contained in:
Hendrik Hofstadt 2021-07-19 14:17:38 +02:00
parent 8f4ed821ab
commit fb3d267a50
2 changed files with 4 additions and 4 deletions

View File

@ -298,7 +298,7 @@ where
}
impl DeserializeGovernancePayload for GovernancePayloadUpgrade {
const MODULE: &'static str = "CORE";
const MODULE: &'static str = "Core";
const ACTION: u8 = 2;
}
@ -346,7 +346,7 @@ where
}
impl DeserializeGovernancePayload for GovernancePayloadSetMessageFee {
const MODULE: &'static str = "CORE";
const MODULE: &'static str = "Core";
const ACTION: u8 = 3;
}
@ -387,7 +387,7 @@ where
}
impl DeserializeGovernancePayload for GovernancePayloadTransferFees {
const MODULE: &'static str = "CORE";
const MODULE: &'static str = "Core";
const ACTION: u8 = 4;
}

View File

@ -99,7 +99,7 @@ fn handle_governance_payload<S: Storage, A: Api, Q: Querier>(
let module = String::from_utf8(gov_packet.module).unwrap();
let module: String = module.chars().filter(|c| !c.is_whitespace()).collect();
if module != "core" {
if module != "Core" {
return Err(StdError::generic_err("this is not a valid module"));
}