일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 컨트렉트 동일한 함수이름 호출
- 러스트 기초
- cloud hsm 서명
- vue기초
- rust 기초
- Vue.js
- ethers typescript
- redux 기초
- ethers websocket
- cloud hsm 사용하기
- 스마트컨트렉트 예약어 함수이름 중복
- erc4337
- 스마트 컨트렉트 함수이름 중복
- 티스토리챌린지
- 머신러닝기초
- ambiguous function description
- 계정추상화
- 체인의정석
- 오블완
- erc4337 contract
- ethers type
- SBT표준
- 러스트기초
- git rebase
- cloud hsm
- 스마트컨트렉트 함수이름 중복 호출
- Vue
- ethers v6
- 러스트 기초 학습
- redux toolkit 설명
- Today
- Total
목록분류 전체보기 (527)
체인의정석
const paddedOriginChain = ethers.utils.hexZeroPad("0x1", 32) => paddedOriginChain >>> 0x0000000000000000000000000000000000000000000000000000000000000001
nft에 있는 token URI는 앞부분은 다음과 같이 오픈제플린 표준에 있는 인터페이스방식대로 가져오면 된다. // override external view function tokenURI(uint256 tokenId) external view returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = getBaseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } function getBaseURI()..

코드 리뷰 때 모든 코멘트를 싱글로 달면 메일이 계속 날라가서 다음과 같이 변경하였다. https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/commenting-on-a-pull-request Commenting on a pull request - GitHub Docs You can comment on a pull request's Conversation tab to leave general comments, questions, or props. You can also suggest changes that the author of the pull request ca..
ERC721 Receiver /** * @dev Internal function to invoke `onERC721Received` on a target address. * The call is not executed if the target address is not a contract. * * This function is deprecated. * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _d..
ERC721에서 token URI는 토큰아이디와 base URI의 조합으로 만들어 진다. IERC721Metadata.sol function tokenURI(uint256 tokenId) external view returns (string memory); ERC721.sol /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _base..

먼저 아래 링크의 문서를 통하여 테스트 코드를 작성하기로 해보았다. https://ethereum-waffle.readthedocs.io/en/latest/getting-started.html Getting Started — waffle documentation After you have successfully authored a Smart Contract you can now think about testing it. Fortunately for you, Waffle is packed with tools that help with that. Tests in waffle are written using Mocha alongside with Chai. You can use a different test e..
생성자로 코드 형태인 bytes32를 넣어야 하는 상황이다. 그러나 "0x1"과 같이 바로 사용하면 오류가 났다. 찾아보니 bytes32에 패딩작업을 해주지 않으면 오류가 난다고 한다. 따라서 패딩작업을 해주는 함수를 찾아서 적용하였다. const paddedA = ethers.utils.hexZeroPad("0x1", 32) const paddedB = ethers.utils.hexZeroPad("0x2", 32) 이런식으로 0을 채워서 숫자를 맞추어 주어야 32 바이트의 인자값이 나오게 된다. 32byte의 경우 고정 길이로서 외부함수 호출등에도 사용이 가능하며 용량을 작게 차지하여서 특정 인덱스 정보를 저장하는데 용이하다. 여기서는 ERC 토큰의 표준이나 체인의 아이디와 같은 값을 byte32로 지..
다음과 같이 오류가 나서 한참을 해메었다. https://forum.openzeppelin.com/t/you-are-trying-to-create-a-contract-factory-for-the-contract-which-is-abstract-and-cant-be-deployed/11730/3 You are trying to create a contract factory for the contract, which is abstract and can't be deployed Hello @mansijoshi17 if the compiler forces the contract to be marked as an abstract contract, that is because there are function th..