Problem on contract verification

When trying to verify my contract, I encounter this problem:
ENOENT: no such file or directory, open ‘/app/dist/services/codeverification/0x598228643d6faa1b5569c3d996cb8cf8ca1fdb92/build/contracts/equals9.json’

There is nothing in the docs about it. Am I doing something wrong?

(1) Make sure the Contract Name is exactly the contract name. Remove any comments in the code, and if you used an optimizer, change it to yes. Mostly the default is Yes and 200.
(2) Flatten the code (this will replace the library used by the bytecode of the library). For VS code you can use this: Solidity Contract Flattener - Visual Studio Marketplace
(3) Remove comments and blank lines using https://solidity-comment-cleaner.netlify.app/

1 Like