[#779] adm: Support deploying policy contract

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
Evgenii Stratonikov 2023-11-02 10:04:02 +03:00 committed by Evgenii Stratonikov
parent 0b0e5dab24
commit 1ab567870a

View file

@ -42,6 +42,7 @@ const (
containerContract = "container"
frostfsIDContract = "frostfsid"
netmapContract = "netmap"
policyContract = "policy"
proxyContract = "proxy"
)
@ -51,6 +52,7 @@ var (
containerContract,
frostfsIDContract,
netmapContract,
policyContract,
proxyContract,
}
@ -568,7 +570,7 @@ func (c *initializeContext) getContractDeployData(ctrName string, keysParam []an
c.Contracts[containerContract].Hash,
keysParam,
configParam)
case proxyContract:
case proxyContract, policyContract:
items = nil
default:
panic(fmt.Sprintf("invalid contract name: %s", ctrName))