Closed tomw1808 closed 1 year ago
I agree, that would be a great feature. I'll happily take any PRs for this functionality. I can also implement it, but I don't have an estimate for when I'll be able to get to it.
Would this help when bscscan API is down (happens all the time) and you could manually verify with the JSON? It seems directly verifying on the website still works even when the API is down; would be nice to have a fallback for when that happens...
I do use this plugin to generate a Solc JSON Input when the need arises!
Very cool @0xV4L3NT1N3, didn't know about this plugin! @mhrsalehi is there any chance you'd be open to contributing a PR integrating that "export Input JSON" functionality to truffle-plugin-verify (e.g. with a --export-json <file>
flag)?
Since Truffle is being sunset, I don't plan to add new features, so I'm closing this issue.
Working with multiple block explorers, sometimes it would be great to just output the standard json, so it can be uploaded to verify manually.
My current work-around is to change the verify.js slightly, so it outputs the standard json (line 173)
and then run
and then manually clean up the json, remove the logger-lines at the beginning and end.
Then upload the standard json to blockscout and others.
It would be great if that could be automated with a flag like
--output-json MyContract.json
or so.