构成:blockchain -> contracts -> methods ...
contract : 源代码在本地编写,本地编译,部署到远程(链上)
一旦contract部署到了链上,无法更改,只能调用。
solidity: 无法在实现代码中打印log. 只能用event来实现非常原始的输出。 好消息是可以使用 foundry在单元测试中打印log. solidity: for 跟java一样   for(i = 0; i < array.length; i++ ) ... if 跟java一样 class/contract 跟java一样 override 跟...
refer to: https://ethereum.stackexchange.com/questions/143171/hardhat-vs-foundry-which-to-use-for-testing https://jamesbachini.com/hardhat-vs-foundry/ 这个文章很精彩  先说下我这些天使用foundry的感受: 1. 速度超级快,运...
refer to: https://alpha-app.agentlayer.xyz/aegisx 例如:对这个代码: pragma solidity ^0.8.0; import "./ReentrancyGuard.sol"; /** * @title A Very Safe Lender */ interface ERC20Like { function tran...
Blockchain Solidity 根据某个contract获得bytecode再获得abi
Blockchain Solidity顶部永远要放一行废代码