From 944b2a06f13cc6e93194f1b4e5bbb6ee42606b52 Mon Sep 17 00:00:00 2001 From: yann300 Date: Thu, 26 Jan 2017 15:41:26 +0100 Subject: [PATCH] fix mapping type --- src/solidity/types/Mapping.js | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/solidity/types/Mapping.js b/src/solidity/types/Mapping.js index ed5194c9cf..66a848fefb 100644 --- a/src/solidity/types/Mapping.js +++ b/src/solidity/types/Mapping.js @@ -6,16 +6,20 @@ class Mapping extends RefType { super(1, 32, 'mapping') } - decodeValue (value) { - return '' - } - decodeFromStorage (location, storageContent) { - return '' + return { + value: '', + length: '0x', + type: this.typeName + } } decodeFromMemoryInternal (offset, memory) { - return '' + return { + value: '', + length: '0x', + type: this.typeName + } } }