|
|
@ -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] |
|
|
|
} |
|
|
|
} |
|
|
|