Should fail when trying to create an instance of an abstract contract (solc 0.6)
See original GitHub issueExpected Behavior
Creating an abstract contract should fail.
Current Behavior
Returns an address for created contract but calls to that contract fail.
Sorry for not being too detailed with this issue submissions but I’m assuming it’s easy to reproduce and might even be that Solidity 0.6 features aren’t yet implemented.
Your Environment
- Version used: Ganache CLI v6.9.1 (ganache-core: 2.10.2)
- Version of Truffle/Remix/Other tools used: using
etherlime
for compilation and deployment - NodeJS Version: v10.12.0
- Operating System and version (include distro if Linux): OSX Catalina
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Error "Trying to create an instance of an abstract contract." for ...
This is an issue with how constructor's inheritance and constructor parameters work. In your case, MyAdvancedToken inherits from token, ...
Read more >Explicit keyword for abstract contracts · Issue #649 - GitHub
I think having an explicit keyword could aid error reporting. Should it be called abstract contract or interface though?
Read more >Contracts — Solidity 0.8.17 documentation
Contracts in Solidity are similar to classes in object-oriented languages. They contain persistent data in state variables, and functions that can modify these ......
Read more >Solidity Documentation - Read the Docs
Solidity is an object-oriented, high-level language for implementing smart contracts. Smart contracts are programs.
Read more >Ethereum and Solidity development quick guide - ftsrg
The purpose of this document is to give a brief introduction into developing smart contracts for the Ethereum blockchain using the Solidity ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
OK, I couldn’t reproduce this with latest Truffle/Ganache. I got an error as expected:
Is it OK if we close this, then?
Hm, that’s odd. That shouldn’t work. I’ll try this out later and see if I can reproduce it on latest Truffle/Ganache. Thanks!