I'm trying to deploy a truffle project to testnet. When I run truffle migrate --reset --network rinkeby --verbose-rpc
, this is output:
You can improve web3's peformance when running Node.js versions older than 10.5.0 by installing the (deprecated) scrypt package in your project
You can improve web3's peformance when running Node.js versions older than 10.5.0 by installing the (deprecated) scrypt package in your project
Compiling your contracts...
===========================
> Compiling ./contracts/Migrations.sol
> Compiling ./contracts/StarNotary.sol
...
> Artifacts written to /home/how/projects/_mooc/blockchain/starNotary_3/build/contracts
> Compiled successfully using:
- solc: 0.5.8+commit.23d335f2.Emscripten.clang
It doesn't create any contract neither in testnet nor locally, and it doesn't mention what goes wrong.
Here is relevant content of truffle.js
file:
const HDWalletProvider = require('truffle-hdwallet-provider');
const fs = require('fs');
require('dotenv').config()
module.exports = {
networks: {
development: {
host: "127.0.0.1",
port: 9545,
network_id: "*"
},
rinkeby: {
provider: () => new HDWalletProvider(process.env.MNENOMIC, "https://rinkeby.infura.io/v3/" + process.env.INFURA_API_KEY),
network_id: 4,
gas: 3000000,
gasPrice: 10000000000
}
}
}
I tried pinging rinkeby.infura.io and it doesn't seem to respond. Can it be that I just can't reach the network?
edit #01
Scripts in migrations
folder
// 1_initial_migration.js
const Migrations = artifacts.require("Migrations");
module.exports = function(deployer) {
deployer.deploy(Migrations);
};
// 2_deploy_contracts.js
const StarNotary = artifacts.require("StarNotary");
module.exports = function(deployer) {
deployer.deploy(StarNotary, "Udacity Star Token", "UST");
};