pangyoelon

  • 홈
  • 태그
  • 방명록

solidity 배열 1

[오류 / Solidity] 크기가 정해진 배열에 push

uint256[3] public ageArray; function agePush(uint256 age) public{ ageArray.push(age); } 위와 같은 상황에서 agePush를 실행하면 오류가 날 것이다! 물론 배열 크기를 지정하지 않았다면 오류가 안 난다 TypeError: Member "push" not found or not visible after argument-dependent lookup in uint256[10] storage ref. --> infrun/lec1.sol:8:9: | 8 | ageArray.push(_age); | ^^^^^^^^^^^^^ ??? : 않이 크기는 지정했는데 아무것도 안 넣었거든여 빈 배열에 push 하는데 왜 오류가 남? 응 아니야, 크기를 ..

Solidity 2022.11.23
이전
1
다음
더보기
프로필사진

pangyoelon

블록체인 개발자 https://github.com/km3140 https://velog.io/@pangyoelon

  • 분류 전체보기 (29)
    • BlockChain (4)
    • Node.js (6)
    • Javascript (1)
    • Solidity (4)
    • Git (3)
    • Go (1)
    • Shell (1)
    • 정보처리기사 (1)
    • React (2)
    • etc (2)
    • Typescript (1)
    • 해커톤 (1)
    • aws (1)

Tag

채굴, undefined hacker house, solidity, Rebase, ethersjs, 글리치 해커톤, react, lens protocol, TypeError: Member "push" not found or not visible after argument-dependent lookup in, 2022년 3월 5일 기출, cors오류, glitch hackathon, 깃허브 옵션, 블록체인, undefined hackathon, axios baseURL, 비트코인, git, 구글링 연산자 이스케이프, tx.wait,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/05   »
일 월 화 수 목 금 토
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

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

  • Github

티스토리툴바