Deduplicate multiple matches in by-state list
This commit is contained in:
parent
c54661d39e
commit
2a9bf41cf5
@ -41,7 +41,7 @@ argparser.add_argument('--include-pending', action='store_true', dest='include_p
|
|||||||
argparser.add_argument('--renderer', type=str, default=[], action='append', help='Transaction renderer for output')
|
argparser.add_argument('--renderer', type=str, default=[], action='append', help='Transaction renderer for output')
|
||||||
#argparser.add_argument('--summary', action='store_true', help='output summary for each status category')
|
#argparser.add_argument('--summary', action='store_true', help='output summary for each status category')
|
||||||
#argparser.add_argument('-o', '--column', dest='column', action='append', type=str, help='add a column to display')
|
#argparser.add_argument('-o', '--column', dest='column', action='append', type=str, help='add a column to display')
|
||||||
argparser.add_positional('address', type=str, help='Ethereum address of recipient')
|
argparser.add_positional('address', required=False, type=str, help='Ethereum address of recipient')
|
||||||
args = argparser.parse_args()
|
args = argparser.parse_args()
|
||||||
extra_args = {
|
extra_args = {
|
||||||
'address': None,
|
'address': None,
|
||||||
|
@ -104,6 +104,7 @@ class Store:
|
|||||||
else:
|
else:
|
||||||
for v in self.state_store.elements(state, numeric=True):
|
for v in self.state_store.elements(state, numeric=True):
|
||||||
refs_state += self.state_store.list(v)
|
refs_state += self.state_store.list(v)
|
||||||
|
refs_state = list(set(refs_state))
|
||||||
if include_pending:
|
if include_pending:
|
||||||
refs_state += self.state_store.list(0)
|
refs_state += self.state_store.list(0)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user