From 127a934065d84470473031e034f642dda5fb598d Mon Sep 17 00:00:00 2001 From: iamacook Date: Sat, 18 Nov 2023 10:19:42 +0300 Subject: [PATCH] fix: encode `multiSend` `data` --- src/services/recovery/transaction.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/services/recovery/transaction.ts b/src/services/recovery/transaction.ts index 9d425efcf8..b93b41b48b 100644 --- a/src/services/recovery/transaction.ts +++ b/src/services/recovery/transaction.ts @@ -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]), } }