Skip to content

Commit

Permalink
fix: returning empty array when Array<Never> is received in ABI
Browse files Browse the repository at this point in the history
  • Loading branch information
dafuga committed Mar 5, 2024
1 parent 33cf264 commit a878b5a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/EOSIO/ABIDecoder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ public extension ABIDecoder {
return Int(try self.readVarint()) as! T
case is UInt.Type:
return UInt(try self.readVaruint()) as! T
case is Array<Never>.Type:
return [] as! T
case let abiType as ABIDecodable.Type:
let decodedAbiType = try abiType.init(fromAbi: self)

Expand Down

0 comments on commit a878b5a

Please sign in to comment.