Comments (2)
IERC20是接口合约,没有具体写法的。具体逻辑在ERC20中实现。
你的意思是补充ERC20的具体写法吗?
from wtf-solidity.
// SPDX-License-Identifier: GPL-3.0
pragma solidity 0.8.7;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
contract LearnContact is ERC20{
constructor(uint _totalSuperNum) ERC20("learn test","LT") {
_mint(msg.sender,_totalSuperNum);
}
}
remix 直接部署,就看到 一堆函数了
from wtf-solidity.
Related Issues (20)
- 22. Call HOT 2
- 第39講 鏈上隨機數生成readme的示範code與描述內容有誤 HOT 5
- 关于46讲的描述的偏差 HOT 3
- S16:NFT重入攻击 报错:ERC721: transfer to non ERC721Receiver implementer HOT 6
- 第16讲:函数重载,最后一题都可以转为50,不会报错 HOT 1
- S08:绕过合约检查 預防辦法部分可能有漏洞 HOT 1
- 第33讲:空投示例得不到期望结果 HOT 1
- 操纵预言机:Oracle.sol中import的IERC20.sol路径变了 HOT 2
- 中文 mapping 类型错误 HOT 3
- 测试提交后没有成绩 HOT 1
- 第39讲 chainlink预言机 Random.sol HOT 1
- revert undeclared identifier HOT 2
- 项目Readme中的捐赠-Mirror 链接 Page not found. HOT 2
- Question about create2 HOT 1
- 大佬
- 学习资料
- ERC20Permit拿DAI举例不对 HOT 2
- Translation revision for Function Lesson HOT 2
- DiveEVM2017: Part4.md 示例数据字节长度错误 HOT 1
- 46_ProxyContract /ProxyContract.sol 调用caller函数为什么返回值是1??? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wtf-solidity.