Commit 0ae9f9b5 authored by yann300's avatar yann300

fix input parameters

parent b0ddc0bd
...@@ -20,9 +20,9 @@ export class StringType extends DynamicByteArray { ...@@ -20,9 +20,9 @@ export class StringType extends DynamicByteArray {
return format(decoded) return format(decoded)
} }
async decodeFromStack (stackDepth, stack, memory, calldata, variableDetails?) { async decodeFromStack (stackDepth, stack, memory, storageResolver, calldata, cursor, variableDetails?) {
try { try {
return await super.decodeFromStack(stackDepth, stack, memory, null, calldata, variableDetails) return await super.decodeFromStack(stackDepth, stack, memory, storageResolver, calldata, cursor, variableDetails)
} catch (e) { } catch (e) {
console.log(e) console.log(e)
return { error: '<decoding failed - ' + e.message + '>' } return { error: '<decoding failed - ' + e.message + '>' }
......
...@@ -43,7 +43,7 @@ export class ValueType { ...@@ -43,7 +43,7 @@ export class ValueType {
* @param {String} - memory * @param {String} - memory
* @return {Object} - decoded value * @return {Object} - decoded value
*/ */
async decodeFromStack (stackDepth, stack, memory, calldata, variableDetails?) { async decodeFromStack (stackDepth, stack, memory, storageResolver, calldata, cursor, variableDetails?) {
let value let value
if (stackDepth >= stack.length) { if (stackDepth >= stack.length) {
value = this.decodeValue('') value = this.decodeValue('')
......
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