Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Commit 17cbe98

Browse files
committed
core(console): fixup truffle console cstr to use new api
1 parent 7eb423d commit 17cbe98

File tree

1 file changed

+1
-5
lines changed
  • packages/core/lib/commands/console

1 file changed

+1
-5
lines changed

packages/core/lib/commands/console/run.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
module.exports = async function (options) {
22
const OS = require("os");
33
const { Console } = require("../../console");
4-
const { validTruffleConsoleCommands } = require("../commands");
54
const { Environment } = require("@truffle/environment");
65
const TruffleError = require("@truffle/error");
76
const loadConfig = require("../../loadConfig");
@@ -20,9 +19,6 @@ module.exports = async function (options) {
2019

2120
let config = loadConfig(options);
2221
await Environment.detect(config);
23-
const c = new Console(
24-
validTruffleConsoleCommands,
25-
config.with({ noAliases: true })
26-
);
22+
const c = new Console(config.with({ noAliases: true }));
2723
return await c.start();
2824
};

0 commit comments

Comments
 (0)