From 6b8994e45645b073139e2bf49fec49ae9fb67c5d Mon Sep 17 00:00:00 2001 From: EmelyanenkoK Date: Wed, 22 Nov 2023 15:41:02 +0300 Subject: [PATCH] Return zero instead of null in compute_storage_fees (#810) Co-authored-by: SpyCheese --- crypto/block/transaction.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/block/transaction.cpp b/crypto/block/transaction.cpp index 23de6e29b..33f1c778e 100644 --- a/crypto/block/transaction.cpp +++ b/crypto/block/transaction.cpp @@ -652,7 +652,7 @@ td::RefInt256 StoragePrices::compute_storage_fees(ton::UnixTime now, const std:: const vm::CellStorageStat& storage_stat, ton::UnixTime last_paid, bool is_special, bool is_masterchain) { if (now <= last_paid || !last_paid || is_special || pricing.empty() || now <= pricing[0].valid_since) { - return {}; + return td::zero_refint(); } std::size_t n = pricing.size(), i = n; while (i && pricing[i - 1].valid_since > last_paid) {