We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e73d872 + e996889 commit 39b76e6Copy full SHA for 39b76e6
Sources/web3swift/EthereumABI/ABIDecoding.swift
@@ -205,7 +205,7 @@ extension ABIDecoder {
205
guard data.count >= pointer + type.memoryUsage else {return (nil, nil)}
206
let dataSlice = data[pointer ..< pointer + type.memoryUsage]
207
let bn = BigUInt(dataSlice)
208
- if bn > UINT64_MAX || bn >= data.count {
+ if bn > UInt64.max || bn >= data.count {
209
// there are ERC20 contracts that use bytes32 intead of string. Let's be optimistic and return some data
210
if case .string = type {
211
let nextElement = pointer + type.memoryUsage
0 commit comments