Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update forwarder-tasks and addresses #46

Merged
merged 11 commits into from
Mar 15, 2024
Prev Previous commit
Next Next commit
fix(tasks): fix userdata decoding in metadata decoding
  • Loading branch information
oliviera9 committed Mar 12, 2024
commit 2ced11bdb3b995348f1801bcd8fe9324444d0f26
3 changes: 1 addition & 2 deletions tasks/decode-forwarder-metadata.js
Original file line number Diff line number Diff line change
@@ -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,