일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 | 31 |
- CLASS
- Interface
- web
- SSR
- graphQL
- node.js
- JavaScript
- nextJS
- CSS
- solidity
- middleware
- concept
- 기준
- Redux
- Ethereum
- tailwindcss
- 삶
- evm
- useState
- REACT
- HTML
- typeScript
- Props
- bitcoin
- API
- built in object
- blockchain
- hardhat
- error
- express.js
- Today
- Total
목록payable (2)
ReasonJun
The main difference between fallback() and receive() in Solidity is that fallback() is called when a contract receives Ether without any calldata, while receive() is called when a contract receives Ether with empty calldata. In other words, fallback() is called when a user sends Ether to a contract directly, while receive() is called when a user calls a function on a contract without passing any..
The Payable keyword in Solidity is used to declare a function or address that can receive Ether. When you declare a function as payable, it means that the function can be called with Ether attached. The Ether that is sent to the function will be stored in the contract's balance and can be used by other functions in the contract. You can also declare an address as payable. This means that Ether c..