Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jribbink committed May 3, 2024
1 parent 02fdc4c commit e433327
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions config/json/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@ func transformDeploymentsToJSON(configDeployments config.Deployments) jsonDeploy
simple: c.Name,
})
} else {
args := make([]map[string]any, 0)
args := make([]any, 0)
for _, arg := range c.Args {
args = append(args, jsoncdc.Prepare(arg).(map[string]any))
args = append(args, jsoncdc.Prepare(arg))
}

deployments = append(deployments, deployment{
Expand All @@ -128,8 +128,8 @@ func transformDeploymentsToJSON(configDeployments config.Deployments) jsonDeploy
}

type contractDeployment struct {
Name string `json:"name"`
Args []map[string]any `json:"args"`
Name string `json:"name"`
Args []any `json:"args"`
}

type deployment struct {
Expand Down

0 comments on commit e433327

Please sign in to comment.