Skip to content

Commit

Permalink
ABW-1941: Make ansharnet use RCnet V2 dashboard (#640)
Browse files Browse the repository at this point in the history
  • Loading branch information
maciek-rdx committed Jul 24, 2023
1 parent 6dc7331 commit 08341b3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Core/SharedModels/LedgerIdentifiable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ extension LedgerIdentifiable {
public var address: String {
switch self {
case let .transaction(txId):
return txId.asStr()
return txId.hex
case let .nonFungibleGlobalID(nonFungibleGlobalId):
return nonFungibleGlobalId.asStr()
}
Expand Down
8 changes: 8 additions & 0 deletions Sources/Profile/AppPreferences/Gateway/Radix+Dashboard.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ extension Radix.Dashboard {
return .enkinet
case .hammunet:
return .hammunet
case .ansharnet:
return .rcnetV2
default:
return .rcnet
}
Expand All @@ -40,6 +42,12 @@ extension Radix.Dashboard {
)
}

public static var rcnetV2: Self {
.init(
url: URL(string: "https://rcnet-v2-dashboard.radixdlt.com/")!
)
}

public static var kisharnet: Self {
.init(
url: URL(string: "https://kisharnet-dashboard.radixdlt.com/")!
Expand Down

0 comments on commit 08341b3

Please sign in to comment.