diff --git a/providers/deployment_provider.go b/providers/deployment_provider.go index eb04a64..24f5c99 100644 --- a/providers/deployment_provider.go +++ b/providers/deployment_provider.go @@ -107,20 +107,20 @@ type Optimizer struct { } type OptimizerDetails struct { - Peephole bool `json:"peephole,omitempty"` - JumpdestRemover bool `json:"jumpdestRemover,omitempty"` - OrderLiterals bool `json:"orderLiterals,omitempty"` - Deduplicate bool `json:"deduplicate,omitempty"` - Cse bool `json:"cse,omitempty"` - ConstantOptimizer bool `json:"constantOptimizer,omitempty"` - Yul bool `json:"yul,omitempty"` + Peephole *bool `json:"peephole,omitempty"` + JumpdestRemover *bool `json:"jumpdestRemover,omitempty"` + OrderLiterals *bool `json:"orderLiterals,omitempty"` + Deduplicate *bool `json:"deduplicate,omitempty"` + Cse *bool `json:"cse,omitempty"` + ConstantOptimizer *bool `json:"constantOptimizer,omitempty"` + Yul *bool `json:"yul,omitempty"` Inliner *bool `json:"inliner,omitempty"` YulDetails *YulDetails `json:"yulDetails,omitempty"` } type YulDetails struct { - StackAllocation bool `json:"stackAllocation,omitempty"` - OptimizerSteps string `json:"optimizerSteps,omitempty"` + StackAllocation *bool `json:"stackAllocation,omitempty"` + OptimizerSteps *string `json:"optimizerSteps,omitempty"` } type Contract struct { diff --git a/rest/payloads/contractPayloads.go b/rest/payloads/contractPayloads.go index 568f266..4698616 100644 --- a/rest/payloads/contractPayloads.go +++ b/rest/payloads/contractPayloads.go @@ -23,20 +23,20 @@ type Config struct { } type ConfigDetails struct { - Peephole bool `json:"peephole,omitempty"` - JumpdestRemover bool `json:"jumpdestRemover,omitempty"` - OrderLiterals bool `json:"orderLiterals,omitempty"` - Deduplicate bool `json:"deduplicate,omitempty"` - Cse bool `json:"cse,omitempty"` - ConstantOptimizer bool `json:"constantOptimizer,omitempty"` - Yul bool `json:"yul,omitempty"` + Peephole *bool `json:"peephole,omitempty"` + JumpdestRemover *bool `json:"jumpdestRemover,omitempty"` + OrderLiterals *bool `json:"orderLiterals,omitempty"` + Deduplicate *bool `json:"deduplicate,omitempty"` + Cse *bool `json:"cse,omitempty"` + ConstantOptimizer *bool `json:"constantOptimizer,omitempty"` + Yul *bool `json:"yul,omitempty"` Inliner *bool `json:"inliner,omitempty"` YulDetails *YulDetails `json:"yulDetails,omitempty"` } type YulDetails struct { - StackAllocation bool `json:"stackAllocation,omitempty"` - OptimizerSteps string `json:"optimizerSteps,omitempty"` + StackAllocation *bool `json:"stackAllocation,omitempty"` + OptimizerSteps *string `json:"optimizerSteps,omitempty"` } func ParseNewTruffleConfig(compilers map[string]providers.Compiler) *Config {