Skip to content

Commit fd3d5dc

Browse files
committed
fix mutability in storey examples
1 parent 51a800e commit fd3d5dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pages/ibc/diy-protocol/channel-lifecycle.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ pub fn ibc_channel_open(
131131
// in this example, we only allow a single channel per contract instance
132132
// you can do more complex checks here
133133
ensure!(
134-
CHANNEL.access(&mut *deps.storage).get()?.is_none(),
134+
CHANNEL.access(&*deps.storage).get()?.is_none(),
135135
StdError::generic_err("channel already exists")
136136
);
137137

@@ -373,7 +373,7 @@ pub fn ibc_channel_connect(
373373
// in this example, we only allow a single channel per contract instance
374374
// you can do more complex checks here
375375
let mut channel_info = CHANNEL
376-
.access(&mut *deps.storage)
376+
.access(&*deps.storage)
377377
.get()?
378378
.ok_or_else(|| StdError::generic_err("channel not found"))?;
379379
ensure!(

0 commit comments

Comments
 (0)