From b88eef5374c8722a668c7a7e4a8840fc838fc1e4 Mon Sep 17 00:00:00 2001 From: Robert Habermeier Date: Tue, 14 Jun 2016 11:48:34 +0200 Subject: [PATCH] use append_empty_data rather than fibbing it --- ethcore/src/snapshot/mod.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ethcore/src/snapshot/mod.rs b/ethcore/src/snapshot/mod.rs index 5d8e6ddcc..b782e6440 100644 --- a/ethcore/src/snapshot/mod.rs +++ b/ethcore/src/snapshot/mod.rs @@ -274,8 +274,7 @@ impl AccountReader { if self.code_hash == SHA3_NULL_RLP { account_stream.append(&true).append(&hash_db.get(&self.code_hash).unwrap()); } else { - let empty: &[u8] = &[]; - account_stream.append(&false).append(&empty); + account_stream.append(&false).append_empty_data(); } account_stream.append(&pairs_rlp);