Skip to content

Commit

Permalink
Merge pull request #91 from ArcBlock/AmountBugFix
Browse files Browse the repository at this point in the history
num fix
  • Loading branch information
karthuszY authored Dec 9, 2021
2 parents e955d6f + e352a05 commit 7f7096d
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .jazzy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ github_url: https://github.com/ArcBlock/arcblock-ios-sdk
github_file_prefix: https://github.com/ArcBlock/arcblock-ios-sdk/tree/master
exclude:
- ArcBlockSDK/ABSDKCoreKit/Network/ABSDKPagination.swift
module_version: 0.11.17
module_version: 0.11.18
2 changes: 1 addition & 1 deletion ArcBlockSDK.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = 'ArcBlockSDK'
s.version = '0.11.17'
s.version = '0.11.18'
s.summary = 'Used to integrate iOS apps with ArcBlock Platform.'

# This description is used to generate tags and improve search results.
Expand Down
2 changes: 1 addition & 1 deletion ArcBlockSDK/ABSDKCoreKit/Extensions/Double+Extension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public extension Double {
///
/// - Parameters:
/// - formattingDecimals: 保留的小数位 最终取Min(6, formattingDecimals)
func toAmountString() -> String {
func formatAmount() -> String {
let formatter = NumberFormatter()
formatter.numberStyle = .decimal
formatter.maximumFractionDigits = BigUInt.MinFormattingDecimals
Expand Down
2 changes: 1 addition & 1 deletion ArcBlockSDK/ABSDKCoreKit/Extensions/String+Extension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public extension String {
///
/// - Parameters:
/// - formattingDecimals: 保留的小数位 最终取Min(6, formattingDecimals)
func toAmountString() -> String {
func formatAmount() -> String {
guard !isEmpty else {
return "0"
}
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 0.11.18 (December 09, 2021)
- name fix

## 0.11.17 (December 01, 2021)


Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.11.17
0.11.18

0 comments on commit 7f7096d

Please sign in to comment.