mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-24 09:25:21 +00:00
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
|
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 {
|
||||||
|
|
Loading…
Reference in a new issue