From b10060c5ff1c2e7349fa02671d4a535e2574e89d Mon Sep 17 00:00:00 2001 From: Luis Perrone Date: Thu, 21 Nov 2024 10:25:32 -0600 Subject: [PATCH] Add lat,lng, and elevation when onboarding IOT --- .../screens/iot/AddToWalletScreen.tsx | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/services/HotspotService/AddHotspotPage/OnboardingSheet/screens/iot/AddToWalletScreen.tsx b/src/services/HotspotService/AddHotspotPage/OnboardingSheet/screens/iot/AddToWalletScreen.tsx index 3175c669..5e5c4ed5 100644 --- a/src/services/HotspotService/AddHotspotPage/OnboardingSheet/screens/iot/AddToWalletScreen.tsx +++ b/src/services/HotspotService/AddHotspotPage/OnboardingSheet/screens/iot/AddToWalletScreen.tsx @@ -277,7 +277,14 @@ const AddToWalletScreen = () => { const { solanaTransactions } = await getOnboardTransactions({ hotspotAddress: onboardingAddress, payer, - networkDetails: [{ hotspotType: 'IOT' }], + networkDetails: [ + { + hotspotType: 'IOT', + lat: latitude, + lng: longitude, + elevation: height, + }, + ], }) let solanaSignedTransactions: Transaction[] | undefined @@ -338,12 +345,6 @@ const AddToWalletScreen = () => { navigation.navigate('Hotspot', { newHotspot: collectable, }) - - if (networkInfo) { - // collectNav.navigate('HotspotMapScreen', { hotspot: collectable, 'IOT' }) - } else { - // collectNav.navigate('AssertLocationScreen', { collectable }) - } }) const error = onboardBalError ||