1

Is it possible to test abstract contract using truffle? If yes, how I can to do it?

1
  • 1
    Yes, inherit the contract, implement the missing functions (to do whatever), and test those that weren't missing. – goodvibration Aug 8 '20 at 16:04
1

No, it is not possible to test them since you can't deploy abstract contracts.

Therefore, you need to write a contract that inherits it, using the keyword "is" and implements all abstract methods. Then, you can use this contract to do actual testing.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.