From fb07741531414a7c84bfadc0e8320939076f235c Mon Sep 17 00:00:00 2001 From: fazledyn-or Date: Tue, 22 Aug 2023 23:07:50 +0600 Subject: [PATCH] Fixed error at `NamedElementOnion` at datastructures.py --- web3/datastructures.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web3/datastructures.py b/web3/datastructures.py index 670ad16bef..13b232d393 100644 --- a/web3/datastructures.py +++ b/web3/datastructures.py @@ -263,6 +263,8 @@ def __add__(self, other: Any) -> "NamedElementOnion[TKey, TValue]": if not isinstance(other, NamedElementOnion): # you can only combine with another ``NamedElementOnion`` return NotImplemented + combined = self._queue.copy() + combined.update(other._queue) return NamedElementOnion(cast(List[Any], combined.items())) def __contains__(self, element: Any) -> bool: