diff --git a/hooks/use-deposit.ts b/hooks/use-deposit.ts index 8a21e86..720561f 100644 --- a/hooks/use-deposit.ts +++ b/hooks/use-deposit.ts @@ -163,12 +163,14 @@ function useDeposit() { console.log("sending deposit transaction"); await Promise.all( deposits.map(async (deposit) => { - let data = "0x"; + let data = ""; data += deposit.withdrawal_credentials; data += deposit.pubkey; data += deposit.signature; data += deposit.deposit_data_root; + console.log(data); + try { writeContract({ address: contractConfig.addresses.token, abi: ERC677ABI, functionName: "transferAndCall", args: [contractConfig.addresses.deposit, depositAmountBN, `0x${data}`] }); } catch (error) {