From de66fbbc170a587aa55711e38f8e8f8e04f0665a Mon Sep 17 00:00:00 2001 From: philip-morlier Date: Wed, 7 Dec 2022 17:59:37 -0800 Subject: [PATCH] interface added to core/interface to enable passing through of cli.v2 methods into plugeth in order to enable polygon's dependency on cli.v1. --- core/interface.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/core/interface.go b/core/interface.go index e6e2ca5..77450fb 100644 --- a/core/interface.go +++ b/core/interface.go @@ -214,3 +214,11 @@ type BlockContext struct { Difficulty *big.Int BaseFee *big.Int } + +type Context interface { + Set(string, string) error + + String(string) string + + Bool(string) bool +}