forked from TrueCloudLab/frostfs-node
[#883] adm: Use proxy contract as admin for frostfsid and policy contracts
Signed-off-by: Alex Vanin <a.vanin@yadro.com>
This commit is contained in:
parent
32f4e72e6a
commit
419b07e8b8
1 changed files with 2 additions and 2 deletions
|
@ -546,7 +546,7 @@ func (c *initializeContext) getContractDeployData(ctrName string, keysParam []an
|
|||
if found {
|
||||
items = append(items, h)
|
||||
} else {
|
||||
items = append(items, nil)
|
||||
items = append(items, c.Contracts[proxyContract].Hash)
|
||||
}
|
||||
case netmapContract:
|
||||
md := getDefaultNetmapContractConfigMap()
|
||||
|
@ -582,7 +582,7 @@ func (c *initializeContext) getContractDeployData(ctrName string, keysParam []an
|
|||
case proxyContract:
|
||||
items = nil
|
||||
case policyContract:
|
||||
items = []any{nil}
|
||||
items = append(items, c.Contracts[proxyContract].Hash)
|
||||
default:
|
||||
panic(fmt.Sprintf("invalid contract name: %s", ctrName))
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue