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