Skip to content

Commit 39b76e6

Browse files
Merge pull request #482 from mloit/use-swift-numeric
2 parents e73d872 + e996889 commit 39b76e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/web3swift/EthereumABI/ABIDecoding.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ extension ABIDecoder {
205205
guard data.count >= pointer + type.memoryUsage else {return (nil, nil)}
206206
let dataSlice = data[pointer ..< pointer + type.memoryUsage]
207207
let bn = BigUInt(dataSlice)
208-
if bn > UINT64_MAX || bn >= data.count {
208+
if bn > UInt64.max || bn >= data.count {
209209
// there are ERC20 contracts that use bytes32 intead of string. Let's be optimistic and return some data
210210
if case .string = type {
211211
let nextElement = pointer + type.memoryUsage

0 commit comments

Comments
 (0)