0

I want to automatically verify the structure of a published smart contract. A smart contract should be valid if the smart contract matches a template. Only the storage can diverge between the template and the smart contract. All functions, etc. should be matching.

Is this possible to test automatically? If so, how?

0

You would match the bytecodes of the deployed smart contract to that of the sample smart contract and compare. The input arguments are appended at the end.

Etherscan already offers this capability. https://etherscan.io/address/0xbd4b60a138b3fce3584ea01f50c0908c18f9677a#code

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.