Commit 3eb5d99c authored by yann300's avatar yann300

decodeFromMemory String

parent 661d6cf0
......@@ -18,6 +18,11 @@ StringType.prototype.decodeLocals = function (stackHeight, stack, memory) {
return format(decoded)
}
StringType.prototype.decodeFromMemory = function (offset, memory) {
var decoded = this.dynamicBytes.decodeFromMemory(offset, memory)
return format(decoded)
}
function format (decoded) {
var value = decoded.value
value = value.replace('0x', '').replace(/(..)/g, '%$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