Files
js/apps/dashboard
nischitpra 8e9c51ee7b send server wallet txn for native transfer fix (#8701)
<!-- start pr-codex -->

## PR-Codex overview
This PR focuses on normalizing the token address in the `SendProjectWalletModalContent` function to ensure consistency when interacting with the contract. It simplifies the handling of the native token address and adjusts how data is passed to the mutation.

### Detailed summary
- Added `normalizedTokenAddress` to handle token address normalization.
- Adjusted the condition to check `normalizedTokenAddress` instead of `values.tokenAddress`.
- Updated the contract call to use `normalizedTokenAddress`.
- Modified the mutation to include `normalizedTokenAddress` only if it exists.
- Changed the mutation call from `void sendMutation.mutateAsync(values)` to `sendMutation.mutate(values)`.

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`

<!-- end pr-codex -->

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit

* **Bug Fixes**
  * Improved native token handling in the project wallet so native tokens are correctly recognized for balance display and transfers.
  * More reliable token decimal detection to ensure accurate balance reads.
  * Fixed send flow to reduce submission issues and make fund transfers more dependable.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-03-06 23:16:05 +00:00
..
2025-12-10 18:35:11 +00:00
2024-06-18 22:42:01 -07:00
2025-07-03 18:32:04 -07:00
2025-06-20 16:14:38 -07:00
2024-06-18 22:42:01 -07:00
2025-06-20 16:14:38 -07:00
2025-12-12 11:06:15 +00:00

thirdweb.com

This repo contains the full source for all of thirdweb.com and the thirdweb dashboard.

Starting a local dev server

Run from the root folder (thirdweb-dev/js):

cd <path/to/thirdweb-dev/js>
pnpm dashboard

Building for production

pnpm build

Environment Variables

Some env vars can be overridden that are required for some external services to work. You can find them in the .env.example file at the root level of the project including some descriptions of what they are used for.

To define env vars please create a .env file based on the .env.example template at the root level of the project. This file is ignored by git so you can safely add it to your local copy of the project.

Add your thirdweb clientID and secret key to build a basic functioning version of the site.

Code Structure and Style Guide

Components

  • Components should go in a components folder next to the app page they are used in.
  • If a component is reused in multiple pages, it should go in the lowest level route folder it is used in. For example, if a chart component is used in all analytics subroutes /analytics/..., it should go in the /analytics/components folder.
  • All low-level components such as buttons, inputs, etc. should be shadcn components found in @/ui.
  • All composed components reused across all page routes are blocks, and should also go in the @/ui folder.

Data fetching

  • Use RSC wherever possible.
  • Write data fetching code in its own function in the same file as the component it is used in, not exported.
  • If the same data fetching function is used in multiple components, place it in a file in an api folder at the lowest level possible (just like components). If you need to do this you probable aren't organizing your components properly.