Magic: {magicBalance.substring(0, 7)} {getNetworkToken()}
AA: {scaBalance.substring(0, 7)} {getNetworkToken()}
```
### Update initial balances
The only remaining balance reference is to set the initial balance while loading to `"..."`. This is in a short `useEffect` that calls `setBalance`. Update this `useEffect` to set both balances:
```typescript TypeScript icon="square-js" theme={null}
// Change this
useEffect(() => {
setBalance('...');
}, [magic]);
// To this
useEffect(() => {
setMagicBalance("...")
setScaBalance("...")
}, [magic])
```
### Update address display
Now find the `CardLabel` and div that displays the address and modify it to use the new naming for `magicAddress` and also display the `scaAddress`.
```jsx JSX theme={null}
Magic:{" "}
{magicAddress?.length == 0 ? "Fetching address..." : magicAddress}
Smart Contract Account:{" "}
{scaAddress?.length == 0 ? "Fetching address..." : scaAddress}
```
### Update `copy` function
Lastly, update the `copy` function to reference `magicAddress` instead of `publicAddress`, otherwise you’ll get an error.
```typescript TypeScript icon="square-js" theme={null}
const copy = useCallback(() => {
if (magicAddress && copied === "Copy") {
setCopied("Copied!")
navigator.clipboard.writeText(magicAddress)
setTimeout(() => {
setCopied("Copy")
}, 1000)
}
}, [copied, magicAddress])
```
Now when a user logs in using Magic, both their Magic and smart contract account address and balances will be displayed!
### Update `SendTransactionCard`
To send a transaction from your smart contract account, you will need to initiate a transaction by calling the `sendTransaction` method on the ZeroDev `kernelClient` object. This transaction requires the following arguments:
1. `target` - The recipient’s wallet address
2. `data` - Data associated with the transaction. Since we’re just transferring tokens, there is no data and you should put `"0x"`
3. `value` - the amount of tokens to send in `wei`.
In `src/components/magic/cards/SendTransactionCard.tsx`, import the the `kernelClient` from `useZeroDevKernelClient` hook and replace the code for `sendTransaction` with the code below.