From 330b131fedd54d88582c2c9f66773c019e2221f4 Mon Sep 17 00:00:00 2001 From: yann300 Date: Tue, 10 Aug 2021 12:01:41 +0200 Subject: [PATCH] fix input parameters --- libs/remix-debug/src/solidity-decoder/types/StringType.ts | 4 ++-- libs/remix-debug/src/solidity-decoder/types/ValueType.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/remix-debug/src/solidity-decoder/types/StringType.ts b/libs/remix-debug/src/solidity-decoder/types/StringType.ts index 2ca56484db..849b8f65a3 100644 --- a/libs/remix-debug/src/solidity-decoder/types/StringType.ts +++ b/libs/remix-debug/src/solidity-decoder/types/StringType.ts @@ -20,9 +20,9 @@ export class StringType extends DynamicByteArray { return format(decoded) } - async decodeFromStack (stackDepth, stack, memory, calldata, variableDetails?) { + async decodeFromStack (stackDepth, stack, memory, storageResolver, calldata, cursor, variableDetails?) { try { - return await super.decodeFromStack(stackDepth, stack, memory, null, calldata, variableDetails) + return await super.decodeFromStack(stackDepth, stack, memory, storageResolver, calldata, cursor, variableDetails) } catch (e) { console.log(e) return { error: '' } diff --git a/libs/remix-debug/src/solidity-decoder/types/ValueType.ts b/libs/remix-debug/src/solidity-decoder/types/ValueType.ts index 262cfcbb10..60d3a8ebed 100644 --- a/libs/remix-debug/src/solidity-decoder/types/ValueType.ts +++ b/libs/remix-debug/src/solidity-decoder/types/ValueType.ts @@ -43,7 +43,7 @@ export class ValueType { * @param {String} - memory * @return {Object} - decoded value */ - async decodeFromStack (stackDepth, stack, memory, calldata, variableDetails?) { + async decodeFromStack (stackDepth, stack, memory, storageResolver, calldata, cursor, variableDetails?) { let value if (stackDepth >= stack.length) { value = this.decodeValue('')