Skip to content

Commit 30711bb

Browse files
committed
PR #440 bugfix, replace the fallthrough's with the desired action, as falling through caused erroneous decoding.
1 parent e9b53c0 commit 30711bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/web3swift/EthereumABI/ABIDecoding.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,13 +181,13 @@ extension ABIDecoder {
181181
if !subType.isStatic {
182182
consumed = consumedUnwrapped
183183
} else {
184-
fallthrough
184+
consumed = consumed + consumedUnwrapped
185185
}
186186
case .tuple(types: _):
187187
if !subTypes[i].isStatic {
188188
consumed = consumedUnwrapped
189189
} else {
190-
fallthrough
190+
consumed = consumed + consumedUnwrapped
191191
}
192192
default:
193193
consumed = consumed + consumedUnwrapped

0 commit comments

Comments
 (0)