From 2a6c873ebdd1c44d2d0a3dfab57af13906b21646 Mon Sep 17 00:00:00 2001 From: Steven Roose Date: Thu, 28 May 2020 15:22:40 +0100 Subject: [PATCH] Add TODO --- src/contracts.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/contracts.rs b/src/contracts.rs index d729838a..a9d1abbf 100644 --- a/src/contracts.rs +++ b/src/contracts.rs @@ -228,6 +228,7 @@ impl Contract { // Add extra fields. for (key, value) in extra_fields.into_iter() { + //TODO(stevenroose) should we check the keys of all recursive objects? check_key(&key)?; if props.insert(key.into(), value).is_some() { return Err(Error::InvalidContract("extra field reused key from details"));