From 33fd25b6126dae0536b135f6681ada8bc6c69aaf Mon Sep 17 00:00:00 2001 From: fredlacs <32464905+fredlacs@users.noreply.github.com> Date: Thu, 17 Aug 2023 12:12:12 -0300 Subject: [PATCH] fix: add array check (#18) --- utils/clients/tenderly.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/clients/tenderly.ts b/utils/clients/tenderly.ts index f5eec149f7a..54fb2adbdc9 100644 --- a/utils/clients/tenderly.ts +++ b/utils/clients/tenderly.ts @@ -645,7 +645,7 @@ async function simulateArbitrumL2ToL1(config: SimulationConfigArbL2ToL1): Promis if (governorType === 'oz' || governorType === 'arb') { const args = ITimeLock.parseTransaction({ data: calldatas[0] }).args let id; - if(args[0].length > 0) { + if(Array.isArray(args[0]) && args[0].length > 0) { id = hashOperationBatchOz(args[0], args[1], args[2], args[3], args[4]) } else { id = hashOperationOz(args[0], args[1], args[2], args[3], args[4])