From 0b78f39b87338bc259ea409520a4a06a061360d1 Mon Sep 17 00:00:00 2001 From: Joshy Orndorff Date: Thu, 17 Jun 2021 10:01:50 -0400 Subject: [PATCH 1/2] derve `Default` for `Context` --- runtime/src/context.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/src/context.rs b/runtime/src/context.rs index 7bb960571..784dcc087 100644 --- a/runtime/src/context.rs +++ b/runtime/src/context.rs @@ -22,7 +22,7 @@ pub enum CreateScheme { } /// Call scheme. -#[derive(Clone, Copy, Eq, PartialEq, Debug)] +#[derive(Clone, Copy, Eq, PartialEq, Debug,)] pub enum CallScheme { /// `CALL` Call, @@ -35,7 +35,7 @@ pub enum CallScheme { } /// Context of the runtime. -#[derive(Clone, Debug)] +#[derive(Clone, Debug, Default)] pub struct Context { /// Execution address. pub address: H160, From b34911b49cd1981419affa6e1464e0274605089b Mon Sep 17 00:00:00 2001 From: Amar Singh Date: Wed, 14 Jul 2021 17:56:24 -0400 Subject: [PATCH 2/2] Update runtime/src/context.rs Co-authored-by: Wei Tang --- runtime/src/context.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/src/context.rs b/runtime/src/context.rs index 784dcc087..8a3390ba2 100644 --- a/runtime/src/context.rs +++ b/runtime/src/context.rs @@ -22,7 +22,7 @@ pub enum CreateScheme { } /// Call scheme. -#[derive(Clone, Copy, Eq, PartialEq, Debug,)] +#[derive(Clone, Copy, Eq, PartialEq, Debug)] pub enum CallScheme { /// `CALL` Call,