Skip to content

Commit

Permalink
Merge pull request #423 from 00labs/stellar-wallet
Browse files Browse the repository at this point in the history
Fix stellar wallet connection
  • Loading branch information
mliu authored Jan 9, 2025
2 parents e46e219 + 823cdc8 commit 7e621ae
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@ export async function fetchStellarDepositRecord(
// Get the contract data with proper durability
const response = await server.getLedgerEntries(key)

const contractData = response.entries[0].val
const contractData = response.entries[0]?.val

if (!contractData) {
return null
}

if (contractData.switch() === xdr.LedgerEntryType.contractData()) {
const data = scValToNative(contractData.contractData().val())
Expand Down

0 comments on commit 7e621ae

Please sign in to comment.