let transactionHash_2: Hex;
const kernelVersion = KERNEL_V3_3;
const kernelAddresses = KernelVersionToAddressesMap[kernelVersion];
// We only have to add the authorization field if the EOA does not have the authorization code set
if (!isSmartAccountDeployed) {
transactionHash_2 = await smartAccountClient.sendTransaction({
calls: [
{
to: zeroAddress,
value: 0n,
data: "0x",
},
{
to: zeroAddress,
value: 0n,
data: "0x",
},
],
authorization: await eoa7702.signAuthorization({
address: kernelAddresses.accountImplementationAddress,
chainId: sepolia.id,
nonce: await client.getTransactionCount({
address: eoa7702.address,
}),
}),
});
} else {
transactionHash_2 = await smartAccountClient.sendTransaction({
calls: [
{
to: zeroAddress,
value: 0n,
data: "0x",
},
{
to: zeroAddress,
value: 0n,
data: "0x",
},
],
});
}