deth
Version:
Ethereum node focused on Developer Experience
16 lines (15 loc) • 600 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const config_1 = require("./config/config");
const lodash_1 = require("lodash");
function getTestChainOptionsFromConfig(config) {
return {
...config.blockchain,
accounts: config.accounts,
};
}
exports.getTestChainOptionsFromConfig = getTestChainOptionsFromConfig;
function getTestChainOptionsWithDefaults(options = {}) {
return lodash_1.merge({}, getTestChainOptionsFromConfig(config_1.DEFAULT_NODE_CONFIG), options);
}
exports.getTestChainOptionsWithDefaults = getTestChainOptionsWithDefaults;