[#828] adm: Fix policy contract deploy
All checks were successful
DCO action / DCO (pull_request) Successful in 3m47s
Vulncheck / Vulncheck (pull_request) Successful in 5m16s
Build / Build Components (1.21) (pull_request) Successful in 7m34s
Build / Build Components (1.20) (pull_request) Successful in 7m42s
Tests and linters / Tests (1.20) (pull_request) Successful in 9m6s
Tests and linters / Staticcheck (pull_request) Successful in 9m4s
Tests and linters / Lint (pull_request) Successful in 9m32s
Tests and linters / Tests (1.21) (pull_request) Successful in 9m50s
Tests and linters / Tests with -race (pull_request) Successful in 11m31s

Signed-off-by: Airat Arifullin <a.arifullin@yadro.com>
This commit is contained in:
Airat Arifullin 2023-11-28 10:32:56 +03:00
parent 8d18fa159e
commit 38611d8824

View file

@ -575,8 +575,10 @@ func (c *initializeContext) getContractDeployData(ctrName string, keysParam []an
c.Contracts[containerContract].Hash, c.Contracts[containerContract].Hash,
keysParam, keysParam,
configParam) configParam)
case proxyContract, policyContract: case proxyContract:
items = nil items = nil
case policyContract:
items = []any{nil}
default: default:
panic(fmt.Sprintf("invalid contract name: %s", ctrName)) panic(fmt.Sprintf("invalid contract name: %s", ctrName))
} }