Fix delete container signature check #745
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ func (d *DeletePrm) SetKey(key []byte) {
|
|||
//
|
||||
// If TryNotary is provided, calls notary contract.
|
||||
func (c *Client) Delete(p DeletePrm) error {
|
||||
if len(p.signature) == 0 && p.IsControl() {
|
||||
if len(p.signature) == 0 && !p.IsControl() {
|
||||
|
||||
return errNilArgument
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue
When IsControl == true, then len(p.signature) == 0, because there is no container owner signature.