| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
- SBT표준
- 러스트 기초 학습
- git rebase
- ethers type
- ethers v6
- 머신러닝기초
- cloud hsm
- 체인의정석
- 티스토리챌린지
- redux toolkit 설명
- redux 기초
- 오블완
- erc4337 contract
- cloud hsm 서명
- rust 기초
- 계정추상화
- cloud hsm 사용하기
- 스마트 컨트렉트 함수이름 중복
- 러스트기초
- 컨트렉트 동일한 함수이름 호출
- ethers typescript
- 스마트컨트렉트 함수이름 중복 호출
- Vue
- ethers websocket
- vue기초
- erc4337
- 스마트컨트렉트 예약어 함수이름 중복
- 러스트 기초
- Vue.js
- ambiguous function description
- Today
- Total
목록전체 글 (531)
체인의정석
하드햇에서 첫번째로 작성하게 되는 테스트 코드는 해피케이스에 대한 시나리오 테스트이다. 이 테스트가 끝나게 되면 테스트 커버리지를 100% 까지 올리기 위해서 온갖 오류를 직접 발생시켜야 한다. 하지만 스마트컨트렉트에서 대부분의 함수들은 특정 조건에서만 실행이 가능하기 때문에 특정 시점에서 분기가 일어나서 오류가 테스트되는 경우 앞에 기본 세팅은 반복이 되어야 한다는 문제점이 있다. 여기에 따라 beforeEach를 사용하기로 하였다. 일단 기본 포맷은 아래와 같다. https://hardhat.org/hardhat-runner/docs/guides/test-contracts#using-fixtures Hardhat | Ethereum development environment for profession..
https://stackoverflow.com/questions/15612003/how-to-push-a-new-folder-containing-other-folders-and-files-to-an-existing-git How to push a new folder (containing other folders and files) to an existing git repo? I cloned a repository to my desktop machine using git clone sshurl. As expected, this created a folder in my desktop. Now, instead of a single file, I want to push a whole folder into git..
스마트컨트렉트에서 이벤트 로그에 구조체를 가져와서 하나의 요소를 지정해준 것을 넣었더니 위와 같은 에러가 났다. https://soliditydeveloper.com/stacktoodeep Stack Too Deep: Three words of horror You just have to add one tiny change in your contracts. With such a small change, you are confident your code is correct. But oh no, what's that error? soliditydeveloper.com 찾아보니 솔리디티 개발자가 가장 싫어하는 직면하는 문제중 하나.. The reason is a limitation in how variables..
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..