codestates / codestates/beb-03-DND
[bug] TypeError: Member “creationCode” not found or not visible after argument-dependent lookup in type
Open
bug
smart contract
- Dominant language
- JavaScript
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
- 에러 내용 : 이 컨트랙트에서 의존성을 주입 받고있는 인터페이스들 중 "creationCode" 라는 함수가 존재하지 않거나 scope 범위에서 보이지않는다.
- 에러 발생 : DNDFactory 에서 DNDPair.creationCode 에서 발생(컴파일 에러)
- 에러 해결 노력 :
ref) https://forum.openzeppelin.com/t/typeerror-member-creationcode-not-found-or-not-visible-after-argument-dependent-lookup-in-type-contract-pancakepair/16676
=> creationCode 에 대한 함수를 의존하고있는 인터페이스에 따로 명시할 필요는 없고, creationCode와 상관없이 인터페이스에서 현재 컨트랙트가 의존성주입이 제대로 되고 있는지 확인하고 수정해보았다.
=> 정상 작동 확인
- 내용 정리 : creationCode 관련 오류가 난다면 의존하고 있는 메서드를 다시 살펴보고, EVM을 constantinople 로 설정했는지 확인해보자.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.