From cd3cdcd6be09dc1cadc09e53136fa95188e2483d Mon Sep 17 00:00:00 2001
From: Philip Offtermatt
Date: Mon, 1 Jul 2024 14:12:34 +0200
Subject: [PATCH] Remove leading underscore from info in instantation
---
contracts/atom_wars/src/contract.rs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/contracts/atom_wars/src/contract.rs b/contracts/atom_wars/src/contract.rs
index 142983c..1c48821 100644
--- a/contracts/atom_wars/src/contract.rs
+++ b/contracts/atom_wars/src/contract.rs
@@ -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 {
set_contract_version(deps.storage, CONTRACT_NAME, CONTRACT_VERSION)?;
@@ -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))
}