File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -13,3 +13,16 @@ public extension BigUInt {
1313 self = value
1414 }
1515}
16+
17+ #if COCOAPODS
18+ extension BigUInt {
19+ var isZero : Bool {
20+ switch kind {
21+ case . inline( 0 , 0 ) : return true
22+ case . array: return storage. isEmpty
23+ default :
24+ return false
25+ }
26+ }
27+ }
28+ #endif
Original file line number Diff line number Diff line change 11Pod ::Spec . new do |spec |
2+ spec . compiler_flags = '-DCOCOAPODS'
3+
24 spec . name = 'Web3Core'
35 spec . version = '3.0.0'
46 spec . module_name = 'Core'
@@ -12,7 +14,7 @@ Pod::Spec.new do |spec|
1214 spec . swift_version = '5.5'
1315
1416 spec . dependency 'secp256k1.c' , '~> 0.1'
15- spec . dependency 'BigInt' , '~> 5.2.0'
17+ spec . dependency 'BigInt' , '~> 5.2.0' # no newer version in pods.
1618 spec . dependency 'CryptoSwift' , '~> 1.5.1'
1719 spec . source_files = "Sources/Core/**/*.swift"
1820end
You can’t perform that action at this time.
0 commit comments