Skip to content

v3.2.2: Fix duplicate key exception when decoding arrays of tuples

Latest

Choose a tag to compare

@lukepuplett lukepuplett released this 06 Nov 20:40
· 2 commits to master since this release

Fixed

  • Fixed duplicate key exception when decoding arrays of tuples in AbiDecoder.checkTypeAndSet()
    • Handles empty SafeName values (falls back to Position.ToString())
    • Handles duplicate keys by appending suffixes (_1, _2, etc.)
    • Prevents ArgumentException: An item with the same key has already been added when decoding ((address,uint256,bytes)[]) and similar types

Changes

  • src/Evoq.Ethereum/Ethereum.ABI/AbiDecoder.cs - Added defensive handling in checkTypeAndSet method
  • src/Evoq.Ethereum/Evoq.Ethereum.csproj - Version bumped to 3.2.2