support experimental flag for metadatahash

pull/1/head
yann300 7 years ago
parent 829194bd31
commit 400c4d58e1
  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