Skip to content

Commit

Permalink
feat: added support for querying mapping via playground
Browse files Browse the repository at this point in the history
  • Loading branch information
gitshreevatsa committed Feb 14, 2025
1 parent 76f5d50 commit f71b146
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions explorer_frontend/src/features/contracts/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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] || "");
}
}
}
}
Expand Down

0 comments on commit f71b146

Please sign in to comment.