Skip to content

Commit

Permalink
fix: encode multiSend data
Browse files Browse the repository at this point in the history
  • Loading branch information
iamacook committed Nov 18, 2023
1 parent 6f3d3c7 commit 127a934
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/services/recovery/transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,13 @@ export function getRecoveryProposalTransaction({
throw new Error('MultiSend deployment not found')
}

const multiSendInterface = new Interface(multiSendDeployment.abi)
const multiSendData = encodeMultiSendData(transactions)

return {
to: multiSendDeployment.networkAddresses[safe.chainId] ?? multiSendDeployment.defaultAddress,
value: '0',
operation: OperationType.Call,
data: encodeMultiSendData(transactions),
data: multiSendInterface.encodeFunctionData('multiSend', [multiSendData]),
}
}

0 comments on commit 127a934

Please sign in to comment.