Skip to content

Commit

Permalink
Merge pull request #15 from cybercongress/fix-space-pussy-denom
Browse files Browse the repository at this point in the history
Fix denom getting for a dmn activation
  • Loading branch information
cyborgshead authored Jan 18, 2024
2 parents 6aaccbc + 1ec5a30 commit c9a7a04
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,8 @@ pub fn instantiate(
Ok(Response::default().add_attribute("action", "instantiate"))
}

pub fn activate(_deps: DepsMut, env: Env) -> Result<Response, ContractError> {
pub fn activate(deps: DepsMut, env: Env) -> Result<Response, ContractError> {
let denom = DENOM.load(deps.storage)?;
let res = Response::new()
.add_message(create_creat_thought_msg(
env.contract.address.to_string(),
Expand All @@ -229,7 +230,7 @@ pub fn activate(_deps: DepsMut, env: Env) -> Result<Response, ContractError> {
// {"block_step":{}}
input: "eyJibG9ja19zdGVwIjp7fX0=".to_string(),
gas_price: Coin {
denom: "boot".to_string(),
denom: denom.to_string(),
amount: Uint128::from(10u128),
},
},
Expand Down

0 comments on commit c9a7a04

Please sign in to comment.