From a496295910aebcf1f4aa733f5d2e9e8bd8b014d5 Mon Sep 17 00:00:00 2001 From: PG Herveou Date: Thu, 8 Feb 2024 13:25:10 +0100 Subject: [PATCH] use DefaultNobound --- drink/src/session/record.rs | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/drink/src/session/record.rs b/drink/src/session/record.rs index e99222f..a09e102 100644 --- a/drink/src/session/record.rs +++ b/drink/src/session/record.rs @@ -21,6 +21,7 @@ type ContractExecResult = pallet_contracts::ContractExecResult, /// By `result` we mean the full result (enriched with some context information) of the contract /// interaction, like `ContractExecResult`. By `return` we mean the return value of the contract /// execution, like a value returned from a message or the address of a newly instantiated contract. +#[derive(frame_support::DefaultNoBound)] pub struct Record { /// The results of contract instantiation. deploy_results: Vec>, @@ -37,18 +38,6 @@ pub struct Record { event_batches: Vec>, } -impl Default for Record { - fn default() -> Self { - Self { - deploy_results: Vec::new(), - deploy_returns: Vec::new(), - call_results: Vec::new(), - call_returns: Vec::new(), - event_batches: Vec::new(), - } - } -} - // API for `Session` to record results and events related to contract interaction. impl Record { pub(super) fn push_deploy_result(&mut self, result: ContractInstantiateResult) {