UnhandledPromiseRejectionWarning во время миграции tronbox

Я сталкиваюсь с этой ошибкой при попытке развернуть свой первый смарт-контракт. Я пробовал использовать tronbox v2.7.14 и v2.5.2, и все кажется одинаковым.

вход:

      tronbox compile --compile-all
tronbox migrate --reset --network shasta

ошибка:

      Using network 'shasta'.

(node:331) UnhandledPromiseRejectionWarning: Error: Invalid URL provided to HttpProvider
    at new e (/home/ganiular/.nvm/versions/node/v14.14.0/lib/node_modules/tronbox/build/webpack:/packages/tronwrap/tronweb/dist/TronWeb.node.js:1:16497)
    at Object.create (/home/ganiular/.nvm/versions/node/v14.14.0/lib/node_modules/tronbox/build/webpack:/packages/truffle-provider/index.js:70:1)
    at Config.get [as provider] (/home/ganiular/.nvm/versions/node/v14.14.0/lib/node_modules/tronbox/build/webpack:/packages/truffle-config/index.js:278:1)
    at /home/ganiular/.nvm/versions/node/v14.14.0/lib/node_modules/tronbox/build/webpack:/~/truffle-expect/index.js:4:1
    at Array.forEach (<anonymous>)
    at Object.options (/home/ganiular/.nvm/versions/node/v14.14.0/lib/node_modules/tronbox/build/webpack:/~/truffle-expect/index.js:3:1)
    at Object.run (/home/ganiular/.nvm/versions/node/v14.14.0/lib/node_modules/tronbox/build/webpack:/packages/truffle-migrate/index.js:134:1)
    at /home/ganiular/.nvm/versions/node/v14.14.0/lib/node_modules/tronbox/build/webpack:/packages/truffle-core/lib/commands/migrate.js:99:1
    at Object.needsMigrating (/home/ganiular/.nvm/versions/node/v14.14.0/lib/node_modules/tronbox/build/webpack:/packages/truffle-migrate/index.js:292:1)
    at runMigrations (/home/ganiular/.nvm/versions/node/v14.14.0/lib/node_modules/tronbox/build/webpack:/packages/truffle-core/lib/commands/migrate.js:94:1)
    at /home/ganiular/.nvm/versions/node/v14.14.0/lib/node_modules/tronbox/build/webpack:/packages/truffle-core/lib/commands/migrate.js:125:1
    at /home/ganiular/.nvm/versions/node/v14.14.0/lib/node_modules/tronbox/build/webpack:/packages/truffle-core/lib/environment.js:65:1
    at cb (/home/ganiular/.nvm/versions/node/v14.14.0/lib/node_modules/tronbox/build/webpack:/packages/tronwrap/index.js:146:1)
    at /home/ganiular/.nvm/versions/node/v14.14.0/lib/node_modules/tronbox/build/webpack:/packages/tronwrap/index.js:174:1
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
(node:331) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
(node:331) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

0 ответов

Другие вопросы по тегам