fix input parameters

pull/1468/head
yann300 3 years ago
parent b0ddc0bd11
commit 0ae9f9b532
  1. 4
      libs/remix-debug/src/solidity-decoder/types/StringType.ts
  2. 2
      libs/remix-debug/src/solidity-decoder/types/ValueType.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: '<decoding failed - ' + e.message + '>' }

@ -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('')

Loading…
Cancel
Save