From e53ddd9d65e6f0b17735083e84486f81ab37e992 Mon Sep 17 00:00:00 2001 From: Brandon Vrooman Date: Fri, 27 Jan 2023 17:03:38 -0500 Subject: [PATCH] Simplify bmt push errror --- crates/fuel-core/src/database/block.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/fuel-core/src/database/block.rs b/crates/fuel-core/src/database/block.rs index af3adbfc0d2..38bd3ad83fc 100644 --- a/crates/fuel-core/src/database/block.rs +++ b/crates/fuel-core/src/database/block.rs @@ -96,8 +96,7 @@ impl StorageMutate for Database { MerkleTree::load(storage, prev_metadata.version) .map_err(|err| StorageError::Other(err.into()))?; let data = key.as_slice(); - tree.push(data) - .map_err(|err| StorageError::Other(err.into()))?; + tree.push(data)?; // Generate new metadata for the updated tree let version = tree.leaves_count();