Unverified Commit 0f988afd authored by yann300's avatar yann300 Committed by GitHub

Merge pull request #974 from ethereum/fixMetadataHash

support experimental flag for metadata hash
parents 829194bd 400c4d58
...@@ -47,6 +47,9 @@ var getDetails = function (contractName, contract, source) { ...@@ -47,6 +47,9 @@ var getDetails = function (contractName, contract, source) {
var retrieveMetadataHash = function (bytecode) { var retrieveMetadataHash = function (bytecode) {
var match = /a165627a7a72305820([0-9a-f]{64})0029$/.exec(bytecode) var match = /a165627a7a72305820([0-9a-f]{64})0029$/.exec(bytecode)
if (!match) {
match = /a265627a7a72305820([0-9a-f]{64})6c6578706572696d656e74616cf50037$/.exec(bytecode)
}
if (match) { if (match) {
return match[1] return match[1]
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment