Merge pull request #974 from ethereum/fixMetadataHash

support experimental flag for metadata hash
pull/1/head
yann300 7 years ago committed by GitHub
commit 0f988afdfb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      src/app/contract/contractParser.js

@ -47,6 +47,9 @@ var getDetails = function (contractName, contract, source) {
var retrieveMetadataHash = function (bytecode) {
var match = /a165627a7a72305820([0-9a-f]{64})0029$/.exec(bytecode)
if (!match) {
match = /a265627a7a72305820([0-9a-f]{64})6c6578706572696d656e74616cf50037$/.exec(bytecode)
}
if (match) {
return match[1]
}

Loading…
Cancel
Save