From 0acda05076fb891d1c4b22c0b3c33509ab3f0845 Mon Sep 17 00:00:00 2001 From: BiPhan4 Date: Wed, 30 Oct 2024 16:40:48 -0400 Subject: [PATCH] resolve 'todo' - already confirmed that only owner is permitted to open channel --- src/contract.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/contract.rs b/src/contract.rs index 815509c..f8af302 100644 --- a/src/contract.rs +++ b/src/contract.rs @@ -68,8 +68,7 @@ pub fn instantiate( if let Some(ref options) = msg.channel_open_init_options { CHANNEL_OPEN_INIT_OPTIONS.save(deps.storage, options)?; } - // WARNING - // TODO: how to ensure that only outpost owner can do this? + ALLOW_CHANNEL_OPEN_INIT.save(deps.storage, &true)?; // If channel open init options are provided, open the channel.