There’s a contract that compiles in my local (ganache).
When I try to deploy it to FUJI testnet, it keeps giving me an error:
Starting migrations...
======================
> Network name: 'fuji'
> Network id: 43113
> Block gas limit: 8000000 (0x7a1200)
1_initial_migration.js
======================
Deploying 'Migrations'
----------------------
Error: *** Deployment Failed ***
"Migrations" -- Invalid character.
The deploy command is:
truffle migrate --reset --compile-all --network fuji
My truffle-config is:
const HDWalletProvider = require("@truffle/hdwallet-provider");
module.exports = {
networks: {
develop: {
host: "127.0.0.1",
port: 7545,
chainId: 1337,
network_id: "*",
deploymentPollingInterval: 10,
},
fuji: {
provider: function() {
return new HDWalletProvider({
privateKeys: ["my private key string"],
providerOrUrl: "https://speedy-nodes-nyc.moralis.io/myspeedynodekey/avalanche/testnet",
chainId: "0xa869"
})
},
network_id: "*",
gas: 5500000,
skipDryRun: true,
networkCheckTimeout: 9999999,
timeoutBlocks: 200,
}
},
compilers: {
solc: {
version: "0.8.4",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
}
}
}
};
Does anyone see what I did wrong? Or is there something I’ve missed?
Hope the community here can help!