fix getting contract name of struct

pull/3068/head
yann300 2 years ago
parent e3d516ee2f
commit 15ddc3a8d1
  1. 4
      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) {

Loading…
Cancel
Save