Replies: 2 comments 6 replies
-
Hello, Why does your |
Beta Was this translation helpful? Give feedback.
6 replies
-
Issue resolved. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone
Before I start, wishing everyone a Happy and successful new year.
I am currently going through the StableCoin part of the Advanced Foundry course and am trying to deploy the corresponding script.
I have created the DeployDSC.s.sol file but am unable to compile as I get a "Cannot instantiate an abstract contract". The 2 contracts I am trying to instantiate are DecentralizedStableCoin and DSCEngine.
I have tried debugging the code but am stuck on the 2 points below:
I do have some functions that aren't implemented so makes sense but why am I not able to compile like Patrick did?
DeplyDSC script:
function run() external returns (DecentralizedStableCoin, DSCEngine) {
vm.startBroadcast();
DecentralizedStableCoin dsc = new DecentralizedStableCoin();
DSCEngine engine = new DSCEngine();
vm.stopBroadcast();
}
DecentralizedStableCoin contract declaration:
abstract contract DecentralizedStableCoin is ERC20Burnable, Ownable
DSCEngine contract declaration:
contract DSCEngine is ReentrancyGuard {
Has anyone ever encountered this error?
Please let me know if you need more info.
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions