-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove USBC WalletConnect integration #987
Conversation
I fully support this but unfortunately don't have time to review it. 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks great. As I had to merge main in order to test it in Xcode 15.3 I just went ahead and pushed the merge commit. I left some minor changes, everything else looks neat.I love to see StarscreamOld outside our code!
Nos/Views/NoteTextEditor.swift
Outdated
@@ -74,6 +75,7 @@ struct NoteTextEditor: View { | |||
} | |||
|
|||
private func insertMention(at offset: Int, author: Author) { | |||
Log.error("test") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This sounds like a log you used while debugging
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops, you are right.
Nos/Models/RelaySubscription.swift
Outdated
@@ -42,7 +41,7 @@ struct RelaySubscription: Identifiable { | |||
) { | |||
self.filter = filter | |||
self.relayAddress = relayAddress | |||
self.id = (filter.id + "-" + relayAddress.absoluteString).sha256() | |||
self.id = (filter.id + "-" + relayAddress.absoluteString).data(using: .utf8)!.sha256 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know this could not fail in real life, but can you rewrite it without the !
? We could just log that case so we can catch that unexpected case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure why we are sha256ing this at all. It doesn't make it any more unique. I just removed that part.
Always love to see −8,632 lines of code in a PR! 🎉 |
The proof of concept USBC/Universal Ledger integration we built last year added a lot of heavy dependencies.
Removing this code sped up a clean build on my machine from 50 seconds to 30 seconds.
The USBC coin has not launched and actually their website (https://uled.io) redirects to another site now, so I think this is safe to remove for now.