일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- CLASS
- 기준
- concept
- API
- nextJS
- useState
- 삶
- hardhat
- HTML
- Interface
- middleware
- evm
- Props
- node.js
- solidity
- tailwindcss
- web
- bitcoin
- CSS
- JavaScript
- SSR
- error
- REACT
- Redux
- typeScript
- express.js
- blockchain
- Ethereum
- built in object
- graphQL
- Today
- Total
목록전체 글 (373)
ReasonJun
The error message invalid opcode: PUSH0 means that the Ethereum Virtual Machine (EVM) does not recognize the PUSH0 opcode. This opcode was introduced in Solidity compiler version 0.8.20, but it is not yet supported by all EVM implementations. If you are trying to deploy a contract that uses the PUSH0 opcode, you will need to make sure that you are deploying it to an EVM implementation that suppo..
// SPDX-License-Identifier: MIT pragma solidity >= 0.7.0 금액 mapping (address => uint) public balance; event log(bytes data); function deposit() public payable returns (uint) { balance[msg.sender] += msg.value; return msg.value; } function withdrawByCall(address payable _addr, uint _amount) public { require(balance[msg.sender] > _amount, "Insufficient Balanc..
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 receive() function in Solidity is a special function that is called automatically when a contract receives Ether without any calldata. This can happen when Ether is sent to the contract using the transfer() function or when a user sends Ether to the contract directly. The receive() function cannot have any arguments or return a value. It can only contain code that interacts with the contract..

The main difference between call() and delegatecall() in Solidity is that call() executes code in a new context, while delegatecall() executes code in the context of the caller. call() When you call a function using call(), the called function is executed in a new context, with its own stack and storage. This means that the called function does not have access to the caller's state, and any chan..
Delegatecall is a low-level Solidity opcode that allows a contract to execute code from another contract while using the state and storage of the calling contract. This can be used to implement a variety of features, such as: Upgrading contracts without losing data: Delegatecall can be used to upgrade a contract to a new version without losing any of the data stored in the contract. This is done..
The call() function in Solidity is a low-level function that can be used to call functions on other contracts or to send Ether to other addresses. It is a very powerful function, but it can also be dangerous if used incorrectly. The call() function takes two arguments: the address of the contract to call and the calldata to send to the function. The calldata is a byte array that contains the fun..
The transfer() function in Solidity is used to transfer Ether to an address. It takes two arguments: the address to transfer the Ether to and the amount of Ether to transfer. The transfer() function returns a boolean value indicating whether the transfer was successful. If the transfer was successful, the function returns true. If the transfer was unsuccessful, the function throws an exception a..
The send() function in Solidity is used to send Ether to an address. It takes two arguments: the address to send the Ether to and the amount of Ether to send. The send() function returns a boolean value indicating whether the transfer was successful. If the transfer was successful, the function returns true. If the transfer was unsuccessful, the function returns false. The send() function is a l..
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..