Truffle - Develop | Test | Compile and Deploy Smart contracts

แชร์
ฝัง
  • เผยแพร่เมื่อ 9 พ.ย. 2024

ความคิดเห็น • 24

  • @johnathanoverton6122
    @johnathanoverton6122 ปีที่แล้ว +1

    I've been following the for dummies book. I was having a difficult time understanding how to edit the truffle-config.js. Thank you.

    • @techspectrum2
      @techspectrum2  ปีที่แล้ว

      I’m really glad it helped Johnathan 👍

  • @ibtehaj95
    @ibtehaj95 ปีที่แล้ว

    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);
    };

    • @techspectrum2
      @techspectrum2  ปีที่แล้ว

      Exactly, they’re two independent commands

  • @johnkinabo9874
    @johnkinabo9874 ปีที่แล้ว +1

    Thank you brother, great video, keep them coming🔥

    • @techspectrum2
      @techspectrum2  ปีที่แล้ว

      I’m glad you liked it John 💛

  • @Madiha456
    @Madiha456 ปีที่แล้ว +2

    Its a very nice video✌ but sir could you make a video on how to connect it to infura as well.

  • @kamilwolskyx
    @kamilwolskyx ปีที่แล้ว +1

    Great video! Keep going bro!

    • @techspectrum2
      @techspectrum2  ปีที่แล้ว

      Thanks Kamil 😊, I’m glad you liked it

  • @priyankgupta
    @priyankgupta ปีที่แล้ว +2

    Great video Tamim.
    Really useful.
    By the way, what tool are you using to make those notes on the screen?

    • @techspectrum2
      @techspectrum2  ปีที่แล้ว

      Thanks Priyank, I’m glad you like it.
      That’s a really cool website called Excalidraw 👇
      excalidraw.com

  • @mrmaahi4945
    @mrmaahi4945 9 หลายเดือนก่อน

    Great video, thanks man !

  • @MartinMarchev
    @MartinMarchev ปีที่แล้ว

    Thanks for this tutorial!

  • @MelodyofEarth
    @MelodyofEarth ปีที่แล้ว +1

    Thanks brother 🌹

  • @muhammadfirdauskurniawan7874
    @muhammadfirdauskurniawan7874 ปีที่แล้ว +1

    bro i have issue in truffle test and get using " network development" in terminal for passed

  • @adriandeveraaa
    @adriandeveraaa ปีที่แล้ว

    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 :|

    • @techspectrum2
      @techspectrum2  ปีที่แล้ว

      That’s a really good question 👍, I’ll prepare a video on that as well.