Skip to content

Commit

Permalink
- fix denom getting for a dmn activation
Browse files Browse the repository at this point in the history
  • Loading branch information
Snedashkovsky committed Jan 18, 2024
1 parent 6aaccbc commit 1ec5a30
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 1ec5a30

Please sign in to comment.