일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- SBT표준
- 머신러닝기초
- redux toolkit 설명
- ambiguous function description
- vue기초
- ethers v6
- cloud hsm
- 스마트컨트렉트 함수이름 중복 호출
- erc4337
- git rebase
- ethers typescript
- 오블완
- rust 기초
- ethers websocket
- redux 기초
- 티스토리챌린지
- 계정추상화
- 체인의정석
- 러스트기초
- 러스트 기초
- cloud hsm 사용하기
- ethers type
- 러스트 기초 학습
- 스마트컨트렉트 예약어 함수이름 중복
- 컨트렉트 동일한 함수이름 호출
- cloud hsm 서명
- Vue.js
- erc4337 contract
- 스마트 컨트렉트 함수이름 중복
- Vue
- Today
- Total
목록분류 전체보기 (528)
체인의정석
https://ethereum.stackexchange.com/questions/48896/is-it-possible-to-have-a-struct-within-an-event Is it possible to have a struct within an Event? I have something like this in solidity: struct Bid { ... } event BidEvent(Bid bid) but when I try to read this event in Javascript, there's no data inside that I can access — no bid variable, ... ethereum.stackexchange.com 최신버전에서는 이벤트 로그에 구조체 데이터를 넣을..
delegateCall에 대한 함수를 작성했는데 hardhat에서는 테스트 코드가 오류가 나는 상황 문제가 없는거 같아 같은 코드를 remix에서 작성했는데 에러가 발생하지 않았다. 알 수 없는 오류가 발생했으니 하드햇에 보고라는 메세지가 떴다. => Hardhat의 경우 아직 delegateCall을 제대로 테스트 할 경우 오류가 날 수 있으므로 주의 TestDelegate 컨트렉트 pragma solidity >=0.7.0 =0.7.0 결론 delegateCall을 통해 함수를 호출할 경우 에러가 나지는 않고 값을 리턴 받을 경우 상태변화는 일어나지 않는다. 여기에 대해 학회장님에게 피드백을 받았는데 delegateCall이 슬롯을 변경시켜서 메모리 영역에서 계산하고 끝나는게 아니고 영구적으로 바뀌는..
출저 : https://ethereum.stackexchange.com/questions/111916/hardhat-test-returns-transaction-instead-of-return-value const shareTokenAddress = await liqminter.connect(actorA).callStatic.createPair([...]) callStatic is a read-only operation and will not consume any Ether. It simulates what would happen in a transaction, but discards all the state changes when it is done. 2. 이벤트를 쓰는 경우 You need to us..
컨트렉트의 가독성을 높이기 위해서 opensea의 seaport 코드를 참고하여 분석을 진행하였다. 먼저 오픈씨의 메인 컨트렉트가 상속 받는 Consideration 컨트렉트이다. https://github.com/ProjectOpenSea/seaport/blob/main/contracts/lib/Consideration.sol GitHub - ProjectOpenSea/seaport: Seaport is a marketplace protocol for safely and efficiently buying and selling NFTs. Seaport is a marketplace protocol for safely and efficiently buying and selling NFTs. - GitHub..
일단 call 과 delegate call의 경우 관리자가 다른 컨트렉트를 통해서 원래 관리자 함수가 있는 컨트렉트에서 관리자 함수를 호출 할 때 사용할 필요가 있었다. https://eun97.tistory.com/entry/Solidity-call-delegateCall [Solidity] call, delegateCall 모든 call들은 특정 주소의 다른 컨트랙트를 데이터, 가스, 이더와 함께 특정 함수를 호출합니다. 어떤 호출이냐에 따라 msg.sender나 변동 storage가 바뀌므로 기본 방식을 이해하고 사용하심이 바 eun97.tistory.com 먼저 call을 쓸 때 "Warning: Return value of low-level calls not used" 경고 문구가 나왔는데, c..
https://ethereum.stackexchange.com/questions/82259/what-is-the-difference-between-the-constant-and-immutable-keywords-in-solidity What is the difference between the constant and immutable keywords in Solidity? What is the difference between the constant and immutable keywords in Solidity and how do I use them? ethereum.stackexchange.com a) For a constant variable, the expression assigned to it i..

Solidity를 오랜만에 보고 있기 때문에 최신 코딩 스타일을 참고하기 위해 소스들을 살펴보았다. https://github.com/ProjectOpenSea/seaport/tree/main/contracts GitHub - ProjectOpenSea/seaport: Seaport is a marketplace protocol for safely and efficiently buying and selling NFTs. Seaport is a marketplace protocol for safely and efficiently buying and selling NFTs. - GitHub - ProjectOpenSea/seaport: Seaport is a marketplace protocol for sa..
const bigNumberChainId = await exchangeCore.getChainId(); chainId = ethers.BigNumber.from(bigNumberChainId).toNumber(); 다음과 같이 ChainID를 조회하는 경우 bignumber가 나오는 경우에서 위와 같이 bigNumber를 먼저 구한 후 .toNumber()를 해주면 숫자형으로 바뀐다. 일반적인 decimal과 관련된 경우 소수점을 표시하고 싶은 경우 아래와 같이 바꿔서 표시해 줄 수 있다. https://ethereum.stackexchange.com/questions/101356/how-to-convert-bignumber-to-normal-number-using-ethers-js How to conv..