Given an address (in server-side javascript), is there a way to check that the address is an instance of a specific smart contract?
I've tried using
web3.eth.getCode(addr)
for a recently deployed contract, but this gives me slightly different bytecode (ie same prefix and postfix with some similar stuff in between) than what was used to deploy it. Am I missing something, or is there another way to do this?
getCodeon that address, you get the same bytecode as the first deployment. – user19510 Apr 23 '18 at 15:35