From db6b9c9863a3794067d89fd9b7247a11f8d21234 Mon Sep 17 00:00:00 2001 From: Maciek <137085416+maciek-rdx@users.noreply.github.com> Date: Wed, 26 Jul 2023 19:40:33 +0200 Subject: [PATCH] ABW-1944 NFT images (#646) --- Sources/Clients/GatewayAPI/GatewayAPI+Utils.swift | 2 +- .../Coordinator/DappInteractionLoading.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/Clients/GatewayAPI/GatewayAPI+Utils.swift b/Sources/Clients/GatewayAPI/GatewayAPI+Utils.swift index f9f987b55f..f835d91803 100644 --- a/Sources/Clients/GatewayAPI/GatewayAPI+Utils.swift +++ b/Sources/Clients/GatewayAPI/GatewayAPI+Utils.swift @@ -80,7 +80,7 @@ extension GatewayAPI.EntityMetadataCollection { } public var iconURL: URL? { - items[.iconURL]?.asString.flatMap(URL.init) + items[.iconURL]?.asURL } public var dappDefinition: String? { diff --git a/Sources/Features/DappInteractionFeature/Coordinator/DappInteractionLoading.swift b/Sources/Features/DappInteractionFeature/Coordinator/DappInteractionLoading.swift index 7de40236e1..dafa00f743 100644 --- a/Sources/Features/DappInteractionFeature/Coordinator/DappInteractionLoading.swift +++ b/Sources/Features/DappInteractionFeature/Coordinator/DappInteractionLoading.swift @@ -170,7 +170,7 @@ extension DappMetadata.Ledger { dAppDefinintionAddress: dAppDefinintionAddress, name: name, description: items[.description]?.asString, - thumbnail: items[.iconURL]?.asString.flatMap(URL.init) + thumbnail: items[.iconURL]?.asURL ) } }