rpc: use CalledByEntry as default cosigner's scope
This commit is contained in:
parent
2a144d0420
commit
8f4257639e
1 changed files with 4 additions and 4 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue