Skip to content

Commit

Permalink
fix small bug
Browse files Browse the repository at this point in the history
  • Loading branch information
luke7211 committed Jan 20, 2024
1 parent e016b0c commit f09c433
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/optimism-decoder/src/decode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export async function decodeArbitrumBatch(
const iface = new ethers.utils.Interface(abi)
const decodedArgs = iface.decodeFunctionData(data.slice(0, 10), data)
console.log(decodedArgs.data.slice(2, 4)) // removing 0x, next byte is type of compressed data
let brotliCompressedData = Buffer.from(data.slice(4), 'hex')
let brotliCompressedData = Buffer.from(decodedArgs.data.slice(4), 'hex')
try {
let decompressedData = zlib.brotliDecompressSync(brotliCompressedData, {
//TODO: No idea what are the correct params
Expand Down

0 comments on commit f09c433

Please sign in to comment.