decert-me / learnsolidity Goto Github PK
View Code? Open in Web Editor NEWSolidity 学习教程
Home Page: https://decert.me/tutorial/solidity/intro
Solidity 学习教程
Home Page: https://decert.me/tutorial/solidity/intro
位置
docs/solidity-basic/12_receive.md
原文表述:而当我们要向合约里转入ETH时,情况比我们想象的复杂一些,被转入的合约需要明确表达其可以接收 ETH,以反正因合约没有处理的ETH的,导致ETH永远锁死在合约中。
”以防因合约没有处理的ETH的函数逻辑,导致ETH永远锁死在合约中“
原文表述:提示: ERC20 代币向合约转账时,并没有对合约经常类似的检查,因此也时不时会发生 ERC20 因误转入合约而锁死。
”并没有对合约经常类似的检查“这句话中的“经常”
原文表述:可以在合约中明确声明两个函数来表示合约时可以接收 ETH, 他们是 receive 函数和 fallback函数。
删去“时'
原文表述:当对合约进行转账时(不是使用MetaMask钱包转账,还是合约中使用addr.send()或者addr.transfer()对合约转账),合约在收到ETH时会执行receive函数。
”不论是使用MetaMask钱包转账“
这个项目如何贡献
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.