Remix doesn't recognize auto generated functions as a valid abstract interface implementation
See original GitHub issueHey,
In the following example -
contract AbstractToken {
function totalSupply() external constant returns (uint256 totalSupply);
}
contract Token is AbstractToken {
uint256 public totalSupply = 0;
}
Remix won’t allow the user to create an instance of Token
(“This contract does not implement all functions and thus cannot be created”), even though the auto generated compiler function for totalSupply matches the abstract interface signature.
Was tested on solidity 0.4.11
Note that solc actually compiles Token
with no error.
See https://github.com/ethereum/solidity/issues/2254
Edit: the issue is also valid when the abstract parent is an interface
instead of a contract
.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:8 (2 by maintainers)
Top Results From Across the Web
The compiler doesn't recognize auto generated functions as a valid ...
Remix doesn't recognize auto generated functions as a valid abstract interface implementation ethereum/remix-project#246.
Read more >Remix doesn't recognize auto generated functions as a valid ...
Remix doesn't recognize auto generated functions as a valid abstract interface implementation.
Read more >REMIX:This contract does not implement all functions and thus ...
solidity - REMIX:This contract does not implement all functions and thus cannot be created - Ethereum Stack Exchange. Stack Overflow for Teams ...
Read more >Why an abstract class implementing an interface can miss the ...
So, as long as an implementation is not provided for an abstract class, objects cannot be created for IAnything. So this is absolutely...
Read more >Abstract Methods and Classes (The Java™ Tutorials ...
Abstract classes are similar to interfaces. You cannot instantiate them, and they may contain a mix of methods declared with or without an...
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 Free
Top 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
Also make sure you’re deploying Token and not AbstractToken. I ran into that too…
Closing it.