일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- ethers v6
- redux toolkit 설명
- Vue
- ethers type
- 티스토리챌린지
- cloud hsm
- Vue.js
- 계정추상화
- ethers websocket
- 스마트컨트렉트 함수이름 중복 호출
- 러스트 기초 학습
- ambiguous function description
- vue기초
- cloud hsm 서명
- erc4337 contract
- 체인의정석
- git rebase
- 스마트컨트렉트 예약어 함수이름 중복
- 러스트 기초
- 스마트 컨트렉트 함수이름 중복
- 오블완
- redux 기초
- ethers typescript
- SBT표준
- cloud hsm 사용하기
- 컨트렉트 동일한 함수이름 호출
- rust 기초
- 머신러닝기초
- erc4337
- 러스트기초
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