Skip to content

Commit 7267bcd

Browse files
committed
fix warrnings and increase type-check time
1 parent 250dd3e commit 7267bcd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Sources/web3swift/Transaction/BloomFilter.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ extension EthereumBloomFilter {
3232
}
3333

3434
static func bloom9(_ data: Data) -> BigUInt {
35-
var b = data.sha3(.keccak256)
35+
let b = data.sha3(.keccak256)
3636
var r = BigUInt(0)
3737
let mask = BigUInt(2047)
3838
for i in stride(from: 0, to: 6, by: 2) {

web3swift.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1404,7 +1404,7 @@
14041404
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
14051405
MTL_FAST_MATH = YES;
14061406
ONLY_ACTIVE_ARCH = YES;
1407-
OTHER_SWIFT_FLAGS = "-Xfrontend -warn-long-expression-type-checking=100";
1407+
OTHER_SWIFT_FLAGS = "-Xfrontend -warn-long-expression-type-checking=150";
14081408
SDKROOT = macosx;
14091409
SUPPORTED_PLATFORMS = "macosx iphonesimulator iphoneos";
14101410
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
@@ -1466,7 +1466,7 @@
14661466
MACOSX_DEPLOYMENT_TARGET = 10.11;
14671467
MTL_ENABLE_DEBUG_INFO = NO;
14681468
MTL_FAST_MATH = YES;
1469-
OTHER_SWIFT_FLAGS = "-Xfrontend -warn-long-expression-type-checking=100";
1469+
OTHER_SWIFT_FLAGS = "-Xfrontend -warn-long-expression-type-checking=150";
14701470
SDKROOT = macosx;
14711471
SUPPORTED_PLATFORMS = "macosx iphonesimulator iphoneos";
14721472
SWIFT_COMPILATION_MODE = wholemodule;

0 commit comments

Comments
 (0)