24
loading...
This website collects cookies to deliver better user experience
module.exports = {
defaultNetwork: "hardhat",
paths: {
artifacts: './src/artifacts',
},
networks: {
// $npx hardhat run scripts/deploy.js --network localhost
// https://hardhat.org/config/
hardhat: {
chainId: 1337,
},
},
solidity: "0.5.6", // This is where you should edit.
};
Creating Typechain artifacts in directory typechain for target ethers-v5
Successfully generated Typechain artifacts!
$python
>>> hex(1000000000000000000000000)
'0xd3c21bcecceda1000000'
>>> hex(1000000000000000000000000000000)
'0xc9f2c9cd04674edea40000000'
>>> hex(1000000000000000000000000000000000)
'0x314dc6448d9338c15b0a00000000'
>>> hex(1000000000000000000000000)
'0xd3c21bcecceda1000000'
>>> 10 ** 26
100000000000000000000000000
>>> hex(_)
'0x52b7d2dcc80cd2e4000000'
function releaseBNB() external {
require(msg.sender == owner_);
owner_.transfer(address(this).balance);
}
// Fallback function
function() external payable {}
$yarn test
Creating Typechain artifacts in directory typechain for target ethers-v5
Successfully generated Typechain artifacts!
SCAMToken state and transactions
✓ Should test 'totalSupply' and other default values.
✓ Should test 'airdropTokens' and the contract and receiver balance change.
✓ Should test 'transfer' from the owner to firstComer.
✓ Should test 'approve' and 'allowance' from the owner to firstComer.
✓ Should test 'approve', 'allowance' and 'transferFrom'.
✓ Should test 'releaseBNB' and it shouldn't affect the balance of other users (not owners)
Join Coinmonks Telegram Channel and learn about crypto trading and investing