Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
CyonAlexRDX committed Mar 26, 2024
1 parent 44d397a commit 58428ee
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ extension SubmitTransactionClient: DependencyKey {
let txID = request.txID

#if DEBUG
Sargon.debugPrintCompiledNotarizedIntent(data: request.compiledNotarizedTXIntent)
debugPrintCompiledNotarizedIntent(data: request.compiledNotarizedTXIntent)
#endif

let submitTransactionRequest = GatewayAPI.TransactionSubmitRequest(
Expand Down
2 changes: 1 addition & 1 deletion RadixWallet/Features/AppFeature/App+Reducer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public struct App: Sendable, FeatureReducer {
root: Root = .splash(.init())
) {
self.root = root
let sargonBuildInfo = Sargon.buildInformation()
let sargonBuildInfo = SargonBuildInformation.get()
let config = BuildConfiguration.current?.description ?? "Unknown Build Config"
loggerGlobal.info("App started (\(config), Sargon=\(sargonBuildInfo))")
}
Expand Down
2 changes: 1 addition & 1 deletion RadixWallet/Features/SettingsFeature/Settings+View.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ extension Settings {

init(state: Settings.State) {
#if DEBUG
let retCommitHash: String = Sargon.buildInformation().radixEngineVersion
let retCommitHash: String = SargonBuildInformation.get().radixEngineVersion
self.debugAppInfo = "RET #\(retCommitHash), SS \(RadixConnectConstants.defaultSignalingServer.absoluteString)"
#endif

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,16 +93,16 @@ extension ResourceAddress {
}
}

extension Sargon {
public static func buildInformation() -> SargonBuildInformation {
SargonBuildInformation()
}

public static func debugPrintCompiledNotarizedIntent(data: Data) -> String {
extension SargonBuildInformation {
public static func get() -> Self {
sargon()
}
}

public func debugPrintCompiledNotarizedIntent(data: Data) -> String {
sargon()
}

extension Data {
func hash() -> Data {
sargon()
Expand Down

0 comments on commit 58428ee

Please sign in to comment.