File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -673,7 +673,7 @@ extension ERC20WalletService {
673673
674674 guard
675675 let timestampHex = result. result? . timestamp,
676- let timestampInt = UInt64 ( timestampHex. stripHexPrefix ( ) , radix: 16 )
676+ let timestampInt = UInt64 ( timestampHex. trimHexPrefix ( ) , radix: 16 )
677677 else {
678678 throw WalletServiceError . remoteServiceError ( message: " Invalid timestamp in block response " )
679679 }
@@ -682,8 +682,8 @@ extension ERC20WalletService {
682682 }
683683}
684684
685- private extension String {
686- func stripHexPrefix ( ) -> String {
685+ extension String {
686+ func trimHexPrefix ( ) -> String {
687687 hasPrefix ( " 0x " ) ? String ( dropFirst ( 2 ) ) : self
688688 }
689689}
Original file line number Diff line number Diff line change @@ -856,7 +856,7 @@ extension EthWalletService {
856856
857857 guard
858858 let timestampHex = result. result? . timestamp,
859- let timestampInt = UInt64 ( timestampHex. stripHexPrefix ( ) , radix: 16 )
859+ let timestampInt = UInt64 ( timestampHex. trimHexPrefix ( ) , radix: 16 )
860860 else {
861861 throw WalletServiceError . remoteServiceError ( message: " Invalid timestamp in block response " )
862862 }
You can’t perform that action at this time.
0 commit comments