Comments (1)
@GrayJyy 确实如此。原因在于0x5B38Da6a701c568545dCfcB03FcB875f56beddC4默认是Remix里的第一个账号,所以部署合约的时候如果不做修改,都是用的它。铸造操作默认也是用的这个账号,因此它的余额在铸造后就是10000。
课程中空投的目标账号["0xAb8483F64d9C6d1EcF9b849Ae677dD3315835cb2", "0x5B38Da6a701c568545dCfcB03FcB875f56beddC4"]正好包含了部署账号。也就是说自己给自己空投了。
如果你把空投目标账号换成两个其他账号,再操作一下,应该就明白怎么回事了。
from wtf-solidity.
Related Issues (20)
- 第二章值类型里面对短路规则描述有错误 HOT 2
- 第十三章关于modifier继承的代码顺序需要调整 HOT 1
- [improvement] 最好添加描述如何打印查看数值
- [improvement] 第三章,修改部分语句通顺问题
- [Typo] 31. ERC20 问题 HOT 2
- [Typo] 32. 代币水龙头 问题 HOT 3
- 内容已添加S17章节,但是主目录没有添加 (应被PR#652自动关闭)
- [Typo] 33. 空投合约 问题 HOT 1
- [Typo] 仓库中的title不统一问题 HOT 1
- pictures can't display in English version
- [feature] 添加issue 模版 HOT 5
- [Typo] 33. 空投合约 erc20 的 修饰问题
- [Typo] 34. ERC721 问题 HOT 2
- [TODO] 11讲演示示例更新
- 在第23讲:Delegatecall中uint256和uint问题 HOT 1
- 大佬请教个重入问题 HOT 2
- [improvement] 建议给活跃贡献者merge 权限
- [bug] 课程中心 dead link
- 关于第六讲 HOT 3
- [BUG]第21章,地址应该加上payable 修饰,发送的值应该用x 而不是msg.value 会有误导
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.