decodeFromMemory String

pull/7/head
yann300 8 years ago
parent f9440aa86d
commit b3c35102f4
  1. 5
      src/solidity/types/StringType.js

@ -23,6 +23,11 @@ StringType.prototype.decodeFromMemory = function (offset, 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')

Loading…
Cancel
Save