Skip to content

Commit

Permalink
fix: add array check (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
fredlacs authored Aug 17, 2023
1 parent 3e72a75 commit 33fd25b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/clients/tenderly.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit 33fd25b

Please sign in to comment.