Skip to content

Commit

Permalink
Remove leading underscore from info in instantation
Browse files Browse the repository at this point in the history
  • Loading branch information
p-offtermatt committed Jul 1, 2024
1 parent 146d08e commit cd3cdcd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/atom_wars/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ pub const MAX_LOCK_ENTRIES: usize = 100;
pub fn instantiate(
deps: DepsMut,
env: Env,
_info: MessageInfo,
info: MessageInfo,
msg: InstantiateMsg,
) -> Result<Response, ContractError> {
set_contract_version(deps.storage, CONTRACT_NAME, CONTRACT_VERSION)?;
Expand Down Expand Up @@ -92,7 +92,7 @@ pub fn instantiate(

Ok(Response::new()
.add_attribute("action", "initialisation")
.add_attribute("sender", _info.sender.clone())
.add_attribute("sender", info.sender.clone())
.add_attribute("denom", msg.denom))
}

Expand Down

0 comments on commit cd3cdcd

Please sign in to comment.