frostfs-contract/common/update.go
Alex Vanin 378e69c015 [#107] common: Check committee witness for contract update
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2021-09-22 11:06:48 +03:00

10 lines
220 B
Go

package common
import (
"github.com/nspcc-dev/neo-go/pkg/interop/runtime"
)
// HasUpdateAccess returns true if contract can be updated.
func HasUpdateAccess() bool {
return runtime.CheckWitness(CommitteeAddress())
}