Skip to content

Commit

Permalink
Add TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenroose committed May 28, 2020
1 parent dfc278f commit ec24e7c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/contracts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
Expand Down

0 comments on commit ec24e7c

Please sign in to comment.