1

This is the file I'm trying to compile.

I've been using truffle for a few years and I remember that we used to be able to compile files with different names than the contracts inside.

I'm using truffle 5.0.35. Is this no longer the case?

2

Nevermind, the issue was that I had a missing bracket at the end of the contract. It is possible to compile files with different contract names with truffle (not possible with sol-compiler though).

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.