From 9d9d2a2a9876143dcfb09b2c6723cb02408a0465 Mon Sep 17 00:00:00 2001 From: Alan Shaw Date: Mon, 7 Sep 2020 12:29:40 +0100 Subject: [PATCH] fix: second argument error message Second argument should be a pointer, not runtime. --- chain/vm/invoker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chain/vm/invoker.go b/chain/vm/invoker.go index eaac395ea..5b299cfef 100644 --- a/chain/vm/invoker.go +++ b/chain/vm/invoker.go @@ -116,7 +116,7 @@ func (*Invoker) transform(instance Invokee) (nativeCode, error) { return nil, newErr("first arguemnt should be vmr.Runtime") } if t.In(1).Kind() != reflect.Ptr { - return nil, newErr("second argument should be Runtime") + return nil, newErr("second argument should be of kind reflect.Ptr") } if t.NumOut() != 1 {