Skip to content

Commit

Permalink
Add lat,lng, and elevation when onboarding IOT
Browse files Browse the repository at this point in the history
  • Loading branch information
Perronef5 committed Nov 21, 2024
1 parent c662633 commit b10060c
Showing 1 changed file with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 ||
Expand Down

0 comments on commit b10060c

Please sign in to comment.