From 15ddc3a8d1bd88fcf8cdf22144549ef763e22f31 Mon Sep 17 00:00:00 2001 From: yann300 Date: Thu, 17 Nov 2022 11:51:42 +0100 Subject: [PATCH] fix getting contract name of struct --- libs/remix-debug/src/solidity-decoder/decodeInfo.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libs/remix-debug/src/solidity-decoder/decodeInfo.ts b/libs/remix-debug/src/solidity-decoder/decodeInfo.ts index f141a7e1f9..a66434a2b7 100644 --- a/libs/remix-debug/src/solidity-decoder/decodeInfo.ts +++ b/libs/remix-debug/src/solidity-decoder/decodeInfo.ts @@ -241,9 +241,7 @@ function getStructMembers (type, stateDefinitions, contractName, location) { if (type.indexOf('.') === -1) { type = contractName + '.' + type } - if (!contractName) { - contractName = type.split('.')[0] - } + contractName = type.split('.')[0] const state = stateDefinitions[contractName] if (state) { for (const dec of state.stateDefinitions) {