Skip to content

Commit

Permalink
review comment: add check back to addHexPrefix
Browse files Browse the repository at this point in the history
  • Loading branch information
metalurgical committed Jul 18, 2024
1 parent 02b86a3 commit 3655710
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Sources/TorusUtils/Extensions/String+Extension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ import Foundation

extension String {
func addHexPrefix() -> String {
if hasPrefix("0x") {
return self
}
return "0x" + self
}

Expand Down

0 comments on commit 3655710

Please sign in to comment.