From ad2828e6445d78facc23ef6b883810fbf0815f49 Mon Sep 17 00:00:00 2001 From: Evgenii Baidakov Date: Thu, 5 Oct 2023 16:45:48 +0400 Subject: [PATCH] *: Use any instead of interface{} Signed-off-by: Evgenii Baidakov --- pkg/locode/db.go | 2 +- pkg/pool/pool.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/locode/db.go b/pkg/locode/db.go index a666bed..ccdcb00 100644 --- a/pkg/locode/db.go +++ b/pkg/locode/db.go @@ -45,7 +45,7 @@ type DB struct { const invalidPrmValFmt = "invalid parameter %s (%T):%v" -func panicOnPrmValue(n string, v interface{}) { +func panicOnPrmValue(n string, v any) { panic(fmt.Sprintf(invalidPrmValFmt, n, v, v)) } diff --git a/pkg/pool/pool.go b/pkg/pool/pool.go index 8ace703..d9fabdf 100644 --- a/pkg/pool/pool.go +++ b/pkg/pool/pool.go @@ -164,7 +164,7 @@ func (p *Pool) NEP17TotalSupply(tokenHash util.Uint160) (int64, error) { // Call returns the results after calling the smart contract scripthash // with the given operation and parameters. // NOTE: this is test invoke and will not affect the blockchain. -func (p *Pool) Call(contract util.Uint160, operation string, params ...interface{}) (*result.Invoke, error) { +func (p *Pool) Call(contract util.Uint160, operation string, params ...any) (*result.Invoke, error) { conn, err := p.nextInvoker() if err != nil { return nil, err