Skip to content

Commit

Permalink
Merge pull request ethereum#974 from ethereum/fixMetadataHash
Browse files Browse the repository at this point in the history
support experimental flag for metadata hash
  • Loading branch information
yann300 authored Jan 3, 2018
2 parents 829194b + 400c4d5 commit 0f988af
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/contract/contractParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]
}
Expand Down

0 comments on commit 0f988af

Please sign in to comment.