diff --git a/explorer_frontend/src/features/contracts/init.ts b/explorer_frontend/src/features/contracts/init.ts index bd46c2152..58f8b9b0a 100644 --- a/explorer_frontend/src/features/contracts/init.ts +++ b/explorer_frontend/src/features/contracts/init.ts @@ -341,8 +341,14 @@ sample({ if (typeof input.name !== "string") { continue; } - const name = input.name; - args.push(callParams[name] || ""); + if (input.name === "") { + for (const key in callParams) { + args.push(callParams[key] || ""); + } + } else { + const name = input.name; + args.push(callParams[name] || ""); + } } } }