| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
Tags
- erc4337 contract
- 머신러닝기초
- ambiguous function description
- rust 기초
- 체인의정석
- redux 기초
- cloud hsm 서명
- 스마트 컨트렉트 함수이름 중복
- ethers v6
- redux toolkit 설명
- 러스트 기초
- Vue
- 러스트기초
- 스마트컨트렉트 예약어 함수이름 중복
- 러스트 기초 학습
- ethers type
- cloud hsm 사용하기
- 컨트렉트 동일한 함수이름 호출
- Vue.js
- SBT표준
- cloud hsm
- 오블완
- 티스토리챌린지
- vue기초
- 스마트컨트렉트 함수이름 중복 호출
- git rebase
- ethers websocket
- erc4337
- ethers typescript
- 계정추상화
Archives
- Today
- Total
목록solidity error message variable (1)
체인의정석
Solidity에서 자료형을 에러메세지에 넣는 방법
solidity에서 만약 자료형을 넣어서 에러메세지를 주고 싶다면 에러를 정의한 후 revert를 해주면 된다. // SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.10; error InvalidNumber(uint32 required, uint32 passed); contract CustomErrors{ uint32 private constant magicNumber = 42; function checkMagicNumber(uint32 _number) public pure { if (_number != magicNumber) revert InvalidNumber({ required: magicNumber, passed: _number }); // ..
블록체인/Solidity
2023. 3. 28. 14:42