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. Commented Aug 8, 2020 at 16:04

1 Answer 1

3

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 and acknowledge you have read our privacy policy.

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