From 823940da575d75f3c254749840bfb8a8a17a6af7 Mon Sep 17 00:00:00 2001 From: Guangyu Date: Sat, 15 Oct 2022 23:01:09 +0800 Subject: [PATCH 1/2] make call function public --- client.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/client.go b/client.go index e69679a..c7cee3a 100644 --- a/client.go +++ b/client.go @@ -91,6 +91,11 @@ func NewCustomized(config Customization) *Client { } } +// expose call +func (c *Client) Call(module, action string, param map[string]interface{}, outcome interface{}) (err error) { + return c.call(module, action, param, outcome) +} + // call does almost all the dirty work. func (c *Client) call(module, action string, param map[string]interface{}, outcome interface{}) (err error) { // fire hooks if in need From dd27d21bc73f3c997c4efb0599b6ffdcafd93b55 Mon Sep 17 00:00:00 2001 From: Guangyu Date: Sun, 20 Nov 2022 21:34:46 +0800 Subject: [PATCH 2/2] Update response.go change response type to avoid parse errors --- response.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/response.go b/response.go index e28007e..2d91b6a 100644 --- a/response.go +++ b/response.go @@ -124,8 +124,8 @@ type ContractSource struct { ABI string `json:"ABI"` ContractName string `json:"ContractName"` CompilerVersion string `json:"CompilerVersion"` - OptimizationUsed int `json:"OptimizationUsed,string"` - Runs int `json:"Runs,string"` + OptimizationUsed string `json:"OptimizationUsed"` + Runs string `json:"Runs"` ConstructorArguments string `json:"ConstructorArguments"` EVMVersion string `json:"EVMVersion"` Library string `json:"Library"`