deploy cfx

This commit is contained in:
Attens1423
2023-05-12 14:40:39 +08:00
parent 0e29bcc832
commit 5b293b91fb
6 changed files with 164 additions and 19 deletions

View File

@@ -11,6 +11,7 @@ const { MOONRIVER_CONFIG } = require("./config/moonriver-config");
const { BOBA_CONFIG } = require("./config/boba-config");
const { AVAX_CONFIG } = require("./config/avax-config");
const { DASHBOARD_CONFIG } = require("./config/dashboard-config");
const {CFX_CONFIG} = require("./config/cfx-config.js");
exports.GetConfig = function (network, accounts) {
var CONFIG = {}
@@ -46,7 +47,7 @@ exports.GetConfig = function (network, accounts) {
CONFIG = AVAX_CONFIG
break;
case "dashboard":
CONFIG = DASHBOARD_CONFIG
CONFIG = CFX_CONFIG
break;
//testnet
case "kovan":
@@ -59,6 +60,9 @@ exports.GetConfig = function (network, accounts) {
CONFIG.multiSigAddress = accounts[0]
CONFIG.defaultMaintainer = accounts[0]
break;
case "cfx":
CONFIG = CFX_CONFIG
break;
}
return CONFIG
}