In Truffle, when you write tests, you can use 'artifacts' and 'web3' objects, without defining these names: const MyContract = artifacts.require('MyContract'); //artifacts was never defined before ! const web3 = new Web3('http://localhost:8545'); //same thing for Web3! How is it possible? this is not valid Javascript! Well, this is what Truffle…
Read StoryIn this video, we will go through the whole process of test-driven-development (TDD) for Solidity smart contracts: writing the tests in Truffle running the failing tests with truffle test fixing the test by implementing the missing parts of the Solidity smart contract running the tests again, this time it will…
Read StoryDebug smart contract tutorial - First 4 videos of "Debugging Smart Contract" course available for free on Youtube 0x Development course - I am preparing a new course on 0x development. Checkout the links for details! A dev journey from Truffle 4 to Truffle 5 - Tutorial to migrate from…
Read StoryIn this video, I will show you what is the basic workflow when you test Solidity smart contracts with the Truffle framework. We are going to learn: files / test folder organization how to import smart contract into tests how to implement the arrange / test / assert pattern in…
Read StoryIn this video, I will introduce you Truffle-Contract, a library that is used by Truffle to communicate with smart contracts. When you use test smart contract with Truffle, that's the library that is used by default by Truffle for your interactions with smart contracts (deployment, transaction and call). You can…
Read StoryBefore we are able to understand how tests work in Truffle, we need to first understand what are contract artifacts and contract abstractions in Truffle, and how they are used to manage smart contract deployments. That's what I will explain you in this video.
Read Story[contact-form-7 id=”217″ title=”Simple Subscribe Form”]