Let’s say we have a simple smart contract MemoryToken, it can be even a stub which has only 1 field name.
pragma solidity ^0.5.0;
contract MemoryToken {
string public name = "Memory token";
}
Festina Lente
Let’s say we have a simple smart contract MemoryToken, it can be even a stub which has only 1 field name.
pragma solidity ^0.5.0;
contract MemoryToken {
string public name = "Memory token";
}
This post is to show how similar every technology to each other. If you experienced with NUnit, XUnit, Jasmine, Protractor, etc., you can easily figure out how to write unit-tests for blockchain smart-contracts using the Truffle tool which under the hood is NodeJS.
Continue reading “Unit-tests for blockchain smart contracts with Truffle”