skoupidi пре 2 година
родитељ
комит
4e8e1ea0a2
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/runtime/vm_runtime.rs

+ 1 - 1
src/runtime/vm_runtime.rs

@@ -363,7 +363,7 @@ impl Runtime {
         // Move the contract's return data into `retdata`.
         let env_mut = self.ctx.as_mut(&mut self.store);
         env_mut.contract_section = ContractSection::Null;
-        let retdata = env_mut.contract_return_data.take().unwrap_or_else(|| Vec::new());
+        let retdata = env_mut.contract_return_data.take().unwrap_or_default();
 
         // Determine the return value of the contract call. If `ret` is empty,
         // assumed that the contract call was successful.