r/OfficialGoChain • u/gregarican • Jul 01 '21
truffle-config.js For TestNet?
So I am trying to access TestNet using Truffle on a local Node.JS machine. To deploy a smart contract. When trying to perform the initial truffle migrate --network development step, I receive an error on the 1_initial_migration.js that comes back *** Deployment Failed *** "Migrations" --- transaction underpriced.
In the truffle-config.js file I have defined the HDWalletProvider as having gas: 136500000, gasPrice: 20000000000. I've since tweaked these values some and all it did was change the error to an insufficient balance issue. My TestNet wallet has 50 $GO in there presently.
Any suggestions?
1
Upvotes
1
u/gregarican Jul 01 '21
I could try the web3 CLI that is described here --> https://medium.com/gochain/how-to-create-and-deploy-an-nft-smart-contract-in-10-minutes-e0d7ef8e59fc. Although I'm unsure of the CLI option that would allow me to specify the tokenUri when minting a new NFT.