4
4
blockchainsContent ,
5
5
blockchainsContentWithNonEVM ,
6
6
} from "mobula-lite/lib/chains/constants" ;
7
- import { ChangeEvent , useState } from "react" ;
7
+ import React , { ChangeEvent , useState } from "react" ;
8
8
import { AiOutlineClose } from "react-icons/ai" ;
9
9
import { LargeFont , MediumFont } from "../../../../../../components/fonts" ;
10
10
import { NextImageFallback } from "../../../../../../components/image" ;
@@ -39,8 +39,6 @@ export const MultiInputTemplate = ({
39
39
const [ temporateValue , setTemporateValue ] = useState < any > ( state [ name ] ) ;
40
40
const { editAssetReducer, setEditAssetReducer } = useGeneralContext ( ) ;
41
41
42
- console . log ( "temporateValue" , temporateValue ) ;
43
-
44
42
const handleNewContract = (
45
43
e : ChangeEvent < HTMLInputElement > ,
46
44
i : string ,
@@ -56,6 +54,7 @@ export const MultiInputTemplate = ({
56
54
} ,
57
55
} ) ;
58
56
const getBlockchain = async ( address : string ) => {
57
+ console . log ( "API_ENDPOINT" , API_ENDPOINT , address ) ;
59
58
const response : any = await axios . get (
60
59
`${ API_ENDPOINT } /api/1/metadata?asset=${ address } ` ,
61
60
{
@@ -64,10 +63,16 @@ export const MultiInputTemplate = ({
64
63
} ,
65
64
}
66
65
) ;
66
+
67
+ console . log ( "response" , response , address ) ;
67
68
const blockchainName = response . data . data . blockchains [ 0 ] ;
68
69
70
+ console . log ( "blockchainName" , blockchainName ) ;
71
+
69
72
const { chainId } = blockchainsContentWithNonEVM [ blockchainName ] ;
70
73
74
+ console . log ( "chainId" , chainId ) ;
75
+
71
76
dispatch ( {
72
77
type : ACTIONS . SET_ELEMENT ,
73
78
payload : {
0 commit comments