From 3a9a7672333aff279271bd2f05a4019070de84a2 Mon Sep 17 00:00:00 2001 From: yann300 Date: Wed, 14 Dec 2016 13:23:21 +0100 Subject: [PATCH] decodeFromMemory String --- src/solidity/types/StringType.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/solidity/types/StringType.js b/src/solidity/types/StringType.js index 3ce6d3a982..daf217f947 100644 --- a/src/solidity/types/StringType.js +++ b/src/solidity/types/StringType.js @@ -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')