Skip to content

Commit

Permalink
fix(tasks): fix userdata decoding in metadata decoding
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviera9 committed Mar 12, 2024
1 parent 8dac3a0 commit 2ced11b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tasks/decode-forwarder-metadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,12 @@ task('utils:decode-forwarder-metadata', 'Decode the pNetwork Forwarder Metadata'
protocolReceipt
} = decodeMetadata(ethers, metadata)

const [callsAndTargets, originAddress, callerAddress] = abiCoder.decode(['bytes', 'address', 'address'], userData)
const [callsAndTargets, callerAddress] = abiCoder.decode(['bytes', 'address'], userData)

console.log({
version,
userData: {
callsAndTargets,
originAddress,
callerAddress
},
sourceNetworkId,
Expand Down

0 comments on commit 2ced11b

Please sign in to comment.