You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
λ tronbox.cmd migrate --reset
Using network 'development'.
(node:7588) UnhandledPromiseRejectionWarning: Error: Invalid URL provided to HttpProvider
at new e (C:\Users\suraj\AppData\Roaming\npm\node_modules\tronbox\node_modules\tronweb\dist\webpack:\src\lib\providers\HttpProvider.js:7:19)
at Object.create (C:\Users\suraj\AppData\Roaming\npm\node_modules\tronbox\build\components\Provider\index.js:1:1403)
at Config.get [as provider] (C:\Users\suraj\AppData\Roaming\npm\node_modules\tronbox\build\components\Config.js:1:6101)
at expected_keys.forEach.key (C:\Users\suraj\AppData\Roaming\npm\node_modules\tronbox\node_modules@truffle\expect\index.js:4:18)
at Array.forEach ()
at Object.options (C:\Users\suraj\AppData\Roaming\npm\node_modules\tronbox\node_modules@truffle\expect\index.js:3:19)
at Object.run (C:\Users\suraj\AppData\Roaming\npm\node_modules\tronbox\build\components\Migrate\index.js:1:3283)
at C:\Users\suraj\AppData\Roaming\npm\node_modules\tronbox\build\lib\commands\migrate.js:1:1229
at Object.needsMigrating (C:\Users\suraj\AppData\Roaming\npm\node_modules\tronbox\build\components\Migrate\index.js:1:6092)
at runMigrations (C:\Users\suraj\AppData\Roaming\npm\node_modules\tronbox\build\lib\commands\migrate.js:1:1096)
(node:7588) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, o
r by rejecting a promise which was not handled with .catch(). (rejection id: 5)
(node:7588) [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.
For your reference code from tronbox.js
module.exports = {
networks: {
development: {
// For trontools/quickstart docker image
privateKey: 'Your_private_key',
consume_user_resource_percent: 30,
fee_limit: 100000000,
fullNode: "http://127.0.0.1:8090",
solidityNode: "http://127.0.0.1:8091",
eventServer: "http://127.0.0.1:8092",
network_id: ""
},
shasta: {
privateKey: 'Your_private_key',
consume_user_resource_percent: 30,
fee_limit: 100000000,
fullNode: "https://api.shasta.trongrid.io",
solidityNode: "https://api.shasta.trongrid.io",
eventServer: "https://api.shasta.trongrid.io",
network_id: ""
},
mainnet: {
// Don't put your private key here, pass it using an env variable, like:
// PK=da146374a75310b9666e834ee4ad0866d6f4035967bfc76217c5a495fff9f0d0 tronbox migrate --network mainnet
privateKey: process.env.PK,
consume_user_resource_percent: 30,
fee_limit: 100000000,
fullNode: "https://api.trongrid.io",
solidityNode: "https://api.trongrid.io",
eventServer: "https://api.trongrid.io",
network_id: "*"
}
}
};
The text was updated successfully, but these errors were encountered:
λ tronbox.cmd migrate --reset
Using network 'development'.
(node:7588) UnhandledPromiseRejectionWarning: Error: Invalid URL provided to HttpProvider
at new e (C:\Users\suraj\AppData\Roaming\npm\node_modules\tronbox\node_modules\tronweb\dist\webpack:\src\lib\providers\HttpProvider.js:7:19)
at Object.create (C:\Users\suraj\AppData\Roaming\npm\node_modules\tronbox\build\components\Provider\index.js:1:1403)
at Config.get [as provider] (C:\Users\suraj\AppData\Roaming\npm\node_modules\tronbox\build\components\Config.js:1:6101)
at expected_keys.forEach.key (C:\Users\suraj\AppData\Roaming\npm\node_modules\tronbox\node_modules@truffle\expect\index.js:4:18)
at Array.forEach ()
at Object.options (C:\Users\suraj\AppData\Roaming\npm\node_modules\tronbox\node_modules@truffle\expect\index.js:3:19)
at Object.run (C:\Users\suraj\AppData\Roaming\npm\node_modules\tronbox\build\components\Migrate\index.js:1:3283)
at C:\Users\suraj\AppData\Roaming\npm\node_modules\tronbox\build\lib\commands\migrate.js:1:1229
at Object.needsMigrating (C:\Users\suraj\AppData\Roaming\npm\node_modules\tronbox\build\components\Migrate\index.js:1:6092)
at runMigrations (C:\Users\suraj\AppData\Roaming\npm\node_modules\tronbox\build\lib\commands\migrate.js:1:1096)
(node:7588) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, o
r by rejecting a promise which was not handled with .catch(). (rejection id: 5)
(node:7588) [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.
For your reference code from tronbox.js
module.exports = {
networks: {
development: {
// For trontools/quickstart docker image
privateKey: 'Your_private_key',
consume_user_resource_percent: 30,
fee_limit: 100000000,
fullNode: "http://127.0.0.1:8090",
solidityNode: "http://127.0.0.1:8091",
eventServer: "http://127.0.0.1:8092",
network_id: ""
},
shasta: {
privateKey: 'Your_private_key',
consume_user_resource_percent: 30,
fee_limit: 100000000,
fullNode: "https://api.shasta.trongrid.io",
solidityNode: "https://api.shasta.trongrid.io",
eventServer: "https://api.shasta.trongrid.io",
network_id: ""
},
mainnet: {
// Don't put your private key here, pass it using an env variable, like:
// PK=da146374a75310b9666e834ee4ad0866d6f4035967bfc76217c5a495fff9f0d0 tronbox migrate --network mainnet
privateKey: process.env.PK,
consume_user_resource_percent: 30,
fee_limit: 100000000,
fullNode: "https://api.trongrid.io",
solidityNode: "https://api.trongrid.io",
eventServer: "https://api.trongrid.io",
network_id: "*"
}
}
};
The text was updated successfully, but these errors were encountered: