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 {
|
if found {
|
||||||
items = append(items, h)
|
items = append(items, h)
|
||||||
} else {
|
} else {
|
||||||
items = append(items, nil)
|
items = append(items, c.Contracts[proxyContract].Hash)
|
||||||
}
|
}
|
||||||
case netmapContract:
|
case netmapContract:
|
||||||
md := getDefaultNetmapContractConfigMap()
|
md := getDefaultNetmapContractConfigMap()
|
||||||
|
@ -582,7 +582,7 @@ func (c *initializeContext) getContractDeployData(ctrName string, keysParam []an
|
||||||
case proxyContract:
|
case proxyContract:
|
||||||
items = nil
|
items = nil
|
||||||
case policyContract:
|
case policyContract:
|
||||||
items = []any{nil}
|
items = append(items, c.Contracts[proxyContract].Hash)
|
||||||
default:
|
default:
|
||||||
panic(fmt.Sprintf("invalid contract name: %s", ctrName))
|
panic(fmt.Sprintf("invalid contract name: %s", ctrName))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue