Just to be sure. truffle init and truffle unbox metacoin were two independent processes and could have been done without the other. The real matter in this tutorial was using the unbox command a deploying the contracts. Thank You. I had my own contract file and I had to add it to the migrations file by doing this before running migrate: const ConvertLib = artifacts.require("ConvertLib"); const MetaCoin = artifacts.require("MetaCoin"); const voteContract = artifacts.require("voteContract"); module.exports = function(deployer) { deployer.deploy(ConvertLib); deployer.link(ConvertLib, MetaCoin, voteContract); deployer.deploy(MetaCoin); deployer.deploy(voteContract); };
What about testing with custom error messages in javascript? For example in sol contract I can define error ZeroAddress(); then in my code do if(msg.sender==0) revert ZeroAddress(); How do I test against this in javascript? No one seems to be talking about this :|
I've been following the for dummies book. I was having a difficult time understanding how to edit the truffle-config.js. Thank you.
I’m really glad it helped Johnathan 👍
Just to be sure. truffle init and truffle unbox metacoin were two independent processes and could have been done without the other. The real matter in this tutorial was using the unbox command a deploying the contracts.
Thank You.
I had my own contract file and I had to add it to the migrations file by doing this before running migrate:
const ConvertLib = artifacts.require("ConvertLib");
const MetaCoin = artifacts.require("MetaCoin");
const voteContract = artifacts.require("voteContract");
module.exports = function(deployer) {
deployer.deploy(ConvertLib);
deployer.link(ConvertLib, MetaCoin, voteContract);
deployer.deploy(MetaCoin);
deployer.deploy(voteContract);
};
Exactly, they’re two independent commands
Thank you brother, great video, keep them coming🔥
I’m glad you liked it John 💛
Its a very nice video✌ but sir could you make a video on how to connect it to infura as well.
Thanks a lot, yeah sure
Great video! Keep going bro!
Thanks Kamil 😊, I’m glad you liked it
Great video Tamim.
Really useful.
By the way, what tool are you using to make those notes on the screen?
Thanks Priyank, I’m glad you like it.
That’s a really cool website called Excalidraw 👇
excalidraw.com
Great video, thanks man !
Thanks for this tutorial!
I’m glad you like it 😊
Thanks brother 🌹
💛
bro i have issue in truffle test and get using " network development" in terminal for passed
Can you share some more details?
@@techspectrum2 I think for the detail should with image, and how I can share with?
What about testing with custom error messages in javascript? For example in sol contract I can define error ZeroAddress(); then in my code do if(msg.sender==0) revert ZeroAddress(); How do I test against this in javascript? No one seems to be talking about this :|
That’s a really good question 👍, I’ll prepare a video on that as well.