Skip to content

Commit 8e21739

Browse files
authored
fix(safe-wc): pass chainId to wallet_sendCalls in the body of the request (#5793)
1 parent b9071ef commit 8e21739

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/wallet/src/api/hooks/useSendBatchTransactions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export function useSendBatchTransactions(): SendBatchTxCallback {
2323
const chainIdHex = '0x' + (+chainId).toString(16)
2424
const calls = txs.map((tx) => ({ ...tx, chainId: chainIdHex }))
2525

26-
return provider.send('wallet_sendCalls', [{ version: '1.0', from: account, calls }])
26+
return provider.send('wallet_sendCalls', [{ version: '1.0', from: account, calls, chainId: chainIdHex }])
2727
}
2828

2929
if (safeAppsSdk) {

0 commit comments

Comments
 (0)