Closed moisses89 closed 12 months ago
Thanks for this project, is really helpful for communicate with Ledger using python :)
Instances of LedgerAccount with the same attributes are currently evaluated as different.
LedgerAccount
from ledgereth.accounts import LedgerAccount, get_account_by_path from ledgereth.comms import init_dongle dongle = init_dongle() account_one = get_account_by_path("44'/60'/0'/0/0", dongle) account_two = get_account_by_path("44'/60'/0'/0/0", dongle) account_one == account_two
Where account_one == account_two is evaluated as False.
account_one == account_two
False
I'd like to suggest that instances of LedgerAccount with same attributes were evaluated as equals.
https://github.com/safe-global/safe-cli/issues/302
Thanks for this project, is really helpful for communicate with Ledger using python :)
Issue Description
Instances of
LedgerAccount
with the same attributes are currently evaluated as different.Where
account_one == account_two
is evaluated asFalse
.Expected behavior
I'd like to suggest that instances of LedgerAccount with same attributes were evaluated as equals.
Related issue
https://github.com/safe-global/safe-cli/issues/302