Skip to content

Commit 9660f7e

Browse files
Merge pull request #655 from yaroslavyaroslav/abi-fix
Dynamic array fix.
2 parents 4b9c261 + 3f64f61 commit 9660f7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Core/EthereumABI/ABIDecoding.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ extension ABIDecoder {
8585
let length = UInt64(BigUInt(dataSlice))
8686
guard elementItself.count >= 32+length else {break}
8787
dataSlice = elementItself[32 ..< 32 + length]
88-
return (dataSlice as AnyObject, type.memoryUsage)
88+
return (dataSlice as AnyObject, nextElementPointer)
8989
case .array(type: let subType, length: let length):
9090
switch type.arraySize {
9191
case .dynamicSize:

0 commit comments

Comments
 (0)