pull/5370/head
yann300 4 years ago
parent cd5a4ad55d
commit 956c03ed5b
  1. 4
      libs/remix-debug/src/solidity-decoder/types/RefType.ts

@ -63,10 +63,10 @@ export class RefType {
const ethersAbi = new ethers.utils.Interface(variableDetails.abi)
const fnSign = calldata.substr(0, 10)
const decodedData = ethersAbi.decodeFunctionData(ethersAbi.getFunction(fnSign), calldata)
let decodedValue = decodedData[variableDetails.name]
const decodedValue = decodedData[variableDetails.name]
const isArray = Array.isArray(decodedValue)
if (isArray) {
return this._decodeCallDataArray(decodedValue, this)
return this._decodeCallDataArray(decodedValue, this)
}
return {
length: isArray ? '0x' + decodedValue.length.toString(16) : undefined,

Loading…
Cancel
Save