본문 바로가기

Solidity

(3)
[Solidity] Using X for Y 문법 https://is-aile-i.tistory.com/20 Solidity Library 알아보기_(All you should know about libraries in solidity 번역) Solidity Library에 대해 알고가기! 아래 링크에 있는 글을 번역한 내용이다. 오역 있을 수 있음! reference : https://medium.com/coinmonks/all-you-should-know-about-libraries-in-solidity-dd8bc953eae7 Dapps를 개발할 때 Solidity is-aile-i.tistory.com 이거 골때린다.. 그래도 여기가 가장 잘 설명되어 있다! https://medium.com/coinmonks/soliditys-using-keywo..
[Solidity] Storage VS Memory https://www.geeksforgeeks.org/storage-vs-memory-in-solidity/ Storage vs Memory in Solidity - GeeksforGeeks A Computer Science portal for geeks. It contains well written, well thought and well explained computer science and programming articles, quizzes and practice/competitive programming/company interview Questions. www.geeksforgeeks.org Memory Storage 영구적 vs 일시적 컨트랙트의 사용이 중지되면 데이터를 지워버림(일시적 공간..
[Solidity] by value VS by reference 크립토 좀비 풀어보다가 헷갈려서 찾아봤다. 파이썬 공부하면서도 나오는 개념이었던 거 같은데.. 맨날 까먹는다..🥲 괜찮다. 까먹을 때마다 와서 보면 된다. A(initial value)로 B를 만든다고 하자. By Value - B는 A의 새로운 복사본이다. - B를 수정한다고 해서 초깃값 A가 변하지는 않는다. ex) Assigning storage to memory uint[] storage A = [1, 2, 3]; uint[] memory B = A; // value of A is copied over to B // modifying B will not change A By Reference - B는 단순히 A가 저장된 곳을 가리킨다.(포인터 역할) - A의 새로운 복사본은 생성되지 않는다. - ..