Skip to content

Commit

Permalink
rename m to msg
Browse files Browse the repository at this point in the history
  • Loading branch information
fadeev committed Mar 6, 2024
1 parent 720e529 commit a35745f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/tasks/src/deposit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ const main = async (args: any, hre: HardhatRuntimeEnvironment) => {
let message;
if (args.message) {
try {
const m = JSON.parse(args.message);
const msg = JSON.parse(args.message);
if (
Array.isArray(m) &&
m.length === 2 &&
Array.isArray(m[0]) &&
m[0].every((item: string) => typeof item === "string") &&
m[1].every((item: string) => typeof item === "string")
Array.isArray(msg) &&
msg.length === 2 &&
Array.isArray(msg[0]) &&
msg[0].every((item: string) => typeof item === "string") &&
msg[1].every((item: string) => typeof item === "string")
) {
message = args.message;
} else {
Expand Down

0 comments on commit a35745f

Please sign in to comment.