Commit 8e9c51e
committed
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 -->1 parent 01a20cb commit 8e9c51e
1 file changed
Lines changed: 12 additions & 4 deletions
File tree
- apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/components/project-wallet
Lines changed: 12 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
889 | 890 | | |
890 | 891 | | |
891 | 892 | | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
892 | 898 | | |
893 | | - | |
| 899 | + | |
894 | 900 | | |
895 | 901 | | |
896 | | - | |
| 902 | + | |
897 | 903 | | |
898 | 904 | | |
899 | 905 | | |
| |||
914 | 920 | | |
915 | 921 | | |
916 | 922 | | |
917 | | - | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
918 | 926 | | |
919 | 927 | | |
920 | 928 | | |
| |||
956 | 964 | | |
957 | 965 | | |
958 | 966 | | |
959 | | - | |
| 967 | + | |
960 | 968 | | |
961 | 969 | | |
962 | 970 | | |
| |||
0 commit comments