Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
normalize: function(buildOpts, query) {
var truffleConfig = TruffleConfigLocator.find()
if(truffleConfig) {
var config = TruffleConfig.load(truffleConfig)
config = merge(buildOpts, config)
}
if (query !== "undefined") {
var config = QueryStringParser.parse(query)
merge(buildOpts, config)
}
if(!buildOpts.network) {
buildOpts.network = "default"
Logger.log("Setting network to 'default' for compilation and contract provisioning")
}
if(!buildOpts.network_id) {
buildOpts.network_id = "default"
Logger.log("Setting network_id to 'default' for compilation and contract provisioning")