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