From 2f6ba1fded4283b6d54054ee4dca13e765785535 Mon Sep 17 00:00:00 2001 From: Anna Shaleva Date: Thu, 23 Nov 2023 11:43:47 +0300 Subject: [PATCH] rpcsrv: define GetSignersWithWitnesses on a pointer Nil receiver can be properly handled and all other `Param`'s mathods are defined on a pointer. Signed-off-by: Anna Shaleva --- pkg/services/rpcsrv/params/param.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/services/rpcsrv/params/param.go b/pkg/services/rpcsrv/params/param.go index 29d390648..3e07f22f4 100644 --- a/pkg/services/rpcsrv/params/param.go +++ b/pkg/services/rpcsrv/params/param.go @@ -394,7 +394,7 @@ func (p *Param) GetSignerWithWitness() (neorpc.SignerWithWitness, error) { // GetSignersWithWitnesses returns a slice of SignerWithWitness with CalledByEntry // scope from an array of Uint160 or an array of serialized transaction.Signer stored // in the parameter. -func (p Param) GetSignersWithWitnesses() ([]transaction.Signer, []transaction.Witness, error) { +func (p *Param) GetSignersWithWitnesses() ([]transaction.Signer, []transaction.Witness, error) { hashes, err := p.GetArray() if err != nil { return nil, nil, err