[#979] adm: Deploy and update Subnet contract

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2021-11-28 16:37:09 +03:00 committed by LeL
parent 1cee1b8f93
commit 70f17dc778

View file

@ -36,6 +36,7 @@ const (
netmapContract = "netmap"
proxyContract = "proxy"
reputationContract = "reputation"
subnetContract = "subnet"
)
const (
@ -63,6 +64,7 @@ var (
netmapContract,
proxyContract,
reputationContract,
subnetContract,
}
fullContractList = append([]string{
@ -475,6 +477,7 @@ func (c *initializeContext) getContractDeployData(ctrName string, keysParam []sm
newContractParameter(smartcontract.Hash160Type, c.Contracts[netmapContract].Hash),
}
case reputationContract:
case subnetContract:
default:
panic(fmt.Sprintf("invalid contract name: %s", ctrName))
}