rpc: use CalledByEntry as default cosigner's scope

This commit is contained in:
Anna Shaleva 2021-04-19 11:53:01 +03:00
parent 2a144d0420
commit 8f4257639e

View file

@ -224,9 +224,9 @@ func (p Param) GetSignerWithWitness() (SignerWithWitness, error) {
return c, nil return c, nil
} }
// GetSignersWithWitnesses returns a slice of SignerWithWitness with global scope from // GetSignersWithWitnesses returns a slice of SignerWithWitness with CalledByEntry
// array of Uint160 or array of serialized transaction.Signer stored in the // scope from array of Uint160 or array of serialized transaction.Signer stored
// parameter. // 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() hashes, err := p.GetArray()
if err != nil { if err != nil {
@ -243,7 +243,7 @@ func (p Param) GetSignersWithWitnesses() ([]transaction.Signer, []transaction.Wi
} }
signers[i] = transaction.Signer{ signers[i] = transaction.Signer{
Account: u, Account: u,
Scopes: transaction.Global, Scopes: transaction.CalledByEntry,
} }
} }
if err != nil { if err != nil {