From 8f4257639eaccbb4e589a31ecbd9c23bcfab8c05 Mon Sep 17 00:00:00 2001 From: Anna Shaleva Date: Mon, 19 Apr 2021 11:53:01 +0300 Subject: [PATCH] rpc: use CalledByEntry as default cosigner's scope --- pkg/rpc/request/param.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/rpc/request/param.go b/pkg/rpc/request/param.go index 00713a6df..33ddfbea1 100644 --- a/pkg/rpc/request/param.go +++ b/pkg/rpc/request/param.go @@ -224,9 +224,9 @@ func (p Param) GetSignerWithWitness() (SignerWithWitness, error) { return c, nil } -// GetSignersWithWitnesses returns a slice of SignerWithWitness with global scope from -// array of Uint160 or array of serialized transaction.Signer stored in the -// parameter. +// GetSignersWithWitnesses returns a slice of SignerWithWitness with CalledByEntry +// scope from array of Uint160 or array of serialized transaction.Signer stored +// in the parameter. func (p Param) GetSignersWithWitnesses() ([]transaction.Signer, []transaction.Witness, error) { hashes, err := p.GetArray() if err != nil { @@ -243,7 +243,7 @@ func (p Param) GetSignersWithWitnesses() ([]transaction.Signer, []transaction.Wi } signers[i] = transaction.Signer{ Account: u, - Scopes: transaction.Global, + Scopes: transaction.CalledByEntry, } } if err != nil {