Skip to content

Commit

Permalink
fix AnyValue
Browse files Browse the repository at this point in the history
  • Loading branch information
nerzh committed May 18, 2022
1 parent 4114ca1 commit dc8be6c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Swift Client for Everscale SDK

[![SPM](https://img.shields.io/badge/swift-package%20manager-green)](https://swift.org/package-manager/)
[![SPM](https://img.shields.io/badge/SDK%20VERSION-1.33.0-orange)](https://github.com/tonlabs/TON-SDK)
[![SPM](https://img.shields.io/badge/SDK%20VERSION-1.33.1-orange)](https://github.com/tonlabs/TON-SDK)

Swift is a strongly typed language that has long been used not only for iOS development. Apple is actively promoting it to new platforms and today it can be used for almost any task. Thanks to this, this implementation provides the work of Everscale SDK on many platforms at once, including the native one for mobile phones. Let me remind you that swift can also be built for android.

Expand Down
3 changes: 2 additions & 1 deletion Sources/EverscaleClientSwift/Extensions/AnyValue.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import Foundation
import BigInt
import SwiftRegularExpression

public enum AnyValue: Decodable, Encodable, Equatable {
case string(String)
Expand Down Expand Up @@ -105,7 +106,7 @@ public enum AnyValue: Decodable, Encodable, Equatable {
case let .bool(value):
result = String(value)
case let .string(value):
result = "\"\(value)\""
result = "\"\(value.replace(#"""#, "\\\""))\""
case let .int(value):
result = String(value)
case let .bigInt(value):
Expand Down

0 comments on commit dc8be6c

Please sign in to comment.