From 33f83fec6c70951b5885193b541a466c186ead95 Mon Sep 17 00:00:00 2001 From: Ashok Menon Date: Sun, 15 Sep 2024 00:05:45 +0100 Subject: [PATCH] rest: discard failed dynamic field indices ## Description Allow dynamic field indexing to fail when building up fullnode REST indices to bring it in line with behaviour in `sui-indexer`, `sui-analytics-indexer`, and the existing fullnode indices. ## Test plan CI --- crates/sui-core/src/rest_index.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/sui-core/src/rest_index.rs b/crates/sui-core/src/rest_index.rs index ade98f8ada4dd..7e16553172beb 100644 --- a/crates/sui-core/src/rest_index.rs +++ b/crates/sui-core/src/rest_index.rs @@ -452,7 +452,9 @@ impl IndexStoreTables { } Owner::ObjectOwner(parent) => { if let Some(field_info) = - try_create_dynamic_field_info(object, resolver)? + try_create_dynamic_field_info(object, resolver) + .ok() + .flatten() { let field_key = DynamicFieldKey::new(*parent, object.id());