Skip to content

Commit d397626

Browse files
chore: wrapped data slice into Data
1 parent 9c28cae commit d397626

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Web3Core/EthereumABI/ABIDecoding.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ extension ABIDecoder {
181181
case .function:
182182
guard elementItself.count >= 32 else {break}
183183
let dataSlice = elementItself[startIndex + 8 ..< startIndex + 32]
184-
return (dataSlice, type.memoryUsage)
184+
return (Data(dataSlice), type.memoryUsage)
185185
}
186186
return (nil, nil)
187187
}

0 commit comments

Comments
 (0)