diff --git a/src/solidity/types/RefType.js b/src/solidity/types/RefType.js index c28cda8680..4701885a70 100644 --- a/src/solidity/types/RefType.js +++ b/src/solidity/types/RefType.js @@ -20,7 +20,10 @@ class RefType { */ decodeFromStack (stackDepth, stack, memory, storage) { if (stack.length - 1 < stackDepth) { - return { error: '' } + return { + error: '', + type: this.typeName + } } if (!storage) { storage = {} // TODO this is a fallback, should manage properly locals store in storage @@ -32,7 +35,10 @@ class RefType { } else if (this.isInMemory()) { return this.decodeFromMemoryInternal(offset, memory) } else { - return { error: '' } + return { + error: '', + type: this.typeName + } } }