Skip to content

Commit

Permalink
*: Use any instead of interface{}
Browse files Browse the repository at this point in the history
Signed-off-by: Evgenii Baidakov <[email protected]>
  • Loading branch information
smallhive committed Oct 10, 2023
1 parent 894dcc8 commit 7fca384
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/locode/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/pool/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7fca384

Please sign in to comment.