removed migrated vesting contract code (#2914)

This commit is contained in:
Jędrzej Stuczyński
2023-01-27 14:22:11 +00:00
committed by GitHub
parent 5ec7beec8a
commit 9a2a99e581
2 changed files with 2 additions and 14 deletions
@@ -17,10 +17,7 @@ pub struct InitMsg {
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema)]
#[serde(rename_all = "snake_case")]
pub struct MigrateMsg {
// I'm making it explicit so that we wouldn't accidentally forget about it
pub manually_verified_no_staking_addresses: bool,
}
pub struct MigrateMsg {}
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema, Default)]
pub struct VestingSpecification {
+1 -10
View File
@@ -51,16 +51,7 @@ pub fn instantiate(
}
#[entry_point]
pub fn migrate(_deps: DepsMut<'_>, _env: Env, msg: MigrateMsg) -> Result<Response, ContractError> {
// we can't perform this check inside the migrate function since there are 12k addresses to check
// and this invariant MUST hold, otherwise we're gonna have bad time
if !msg.manually_verified_no_staking_addresses {
return Err(ContractError::Other {
message:
"the assumption that nobody has set a staking address hasn't been manually verified"
.to_string(),
});
}
pub fn migrate(_deps: DepsMut<'_>, _env: Env, _msg: MigrateMsg) -> Result<Response, ContractError> {
Ok(Response::new())
}