From a7827afafe59b59330e0be7715d1fb67ea460e37 Mon Sep 17 00:00:00 2001 From: Tiago Carvalho Date: Mon, 27 May 2024 09:01:47 +0100 Subject: [PATCH] Associate issues with TODOs --- crates/namada/src/vm/wasm/host_env.rs | 8 ++++---- crates/namada/src/vm/wasm/memory.rs | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/crates/namada/src/vm/wasm/host_env.rs b/crates/namada/src/vm/wasm/host_env.rs index fa5eea43b80..0d8d740693e 100644 --- a/crates/namada/src/vm/wasm/host_env.rs +++ b/crates/namada/src/vm/wasm/host_env.rs @@ -105,8 +105,8 @@ where } } -// TODO: Attempt to reduce the boilerplate of this module with macros, traits -// or something of this sort... +// TODO(namada#3313): Attempt to reduce the boilerplate of this module with +// macros, traits or something of this sort... mod wrap_tx { //! Wrap tx host functions with any number of arguments in a callback //! that can be passed to [`wasmer`], to be used by the guest wasm code. @@ -258,8 +258,8 @@ mod wrap_tx { } } -// TODO: Attempt to reduce the boilerplate of this module with macros, traits -// or something of this sort... +// TODO(namada#3313): Attempt to reduce the boilerplate of this module with +// macros, traits or something of this sort... mod wrap_vp { //! Wrap vp host functions with any number of arguments in a callback //! that can be passed to [`wasmer`], to be used by the guest wasm code. diff --git a/crates/namada/src/vm/wasm/memory.rs b/crates/namada/src/vm/wasm/memory.rs index 6cd7bbf924c..9b872ff640f 100644 --- a/crates/namada/src/vm/wasm/memory.rs +++ b/crates/namada/src/vm/wasm/memory.rs @@ -184,8 +184,8 @@ pub fn write_vp_inputs( /// Check that the given offset and length fits into the memory bounds. If not, /// it will try to grow the memory. -// TODO: avoid growing memory if we're only performing reads; return an Err -// instead +// TODO(namada#3314): avoid growing memory if we're only performing reads; +// return an Err instead fn check_bounds( store: &mut impl wasmer::AsStoreMut, memory: &Memory,