@@ -18,6 +18,7 @@ import useWallet from 'hooks/useWallet'
18
18
import { useSearchParams } from 'next/navigation'
19
19
import { FC , useCallback , useEffect , useMemo , useState } from 'react'
20
20
import toast from 'react-hot-toast'
21
+ import { log } from 'utils/log'
21
22
import { floatToStringWithDecimals , formatUnitsToNumber } from 'utils/number'
22
23
import { WalletButton } from '../WalletButton'
23
24
import { AmountField } from './AmountField'
@@ -72,10 +73,13 @@ export const Transfer: FC = () => {
72
73
73
74
const handleSubmit = useCallback (
74
75
async ( values : FormValues ) => {
76
+ log ( 'transfer' , 'handleSubmit' , 'values' , values )
75
77
if ( ! injector || ! api )
76
78
return toast . error ( 'We are not able to connect to the blockchain' , {
77
79
position : 'bottom-center' ,
78
80
} )
81
+ log ( 'transfer' , 'handleSubmit' , 'injector' , injector )
82
+ log ( 'transfer' , 'handleSubmit' , 'api' , api )
79
83
80
84
const to = values . receiver || subspaceAccount
81
85
if ( ! to ) return toast . error ( 'Receiver is required' , { position : 'bottom-center' } )
0 commit comments