Skip to content

Commit

Permalink
chore: avoiding try? in tests (try is more preffered)
Browse files Browse the repository at this point in the history
  • Loading branch information
JeneaVranceanu authored Nov 26, 2023
1 parent 62addff commit 71e8902
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tests/web3swiftTests/localTests/ABIDecoderSliceTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ final class ABIDecoderSliceTests: XCTestCase {
var resultArray = [BigUInt]()
for i in 0..<2 {
guard let data = returnData[i][1] as? Data,
let balance = try? erc20_balanceof.decodeReturnData(data)["0"] as? BigUInt else {
let balance = try erc20_balanceof.decodeReturnData(data)["0"] as? BigUInt else {
resultArray.append(0)
continue
}
Expand Down

0 comments on commit 71e8902

Please sign in to comment.