Skip to content

Conversation

@popenta
Copy link
Collaborator

@popenta popenta commented Sep 18, 2025

No description provided.

@popenta popenta self-assigned this Sep 18, 2025
@popenta popenta marked this pull request as draft September 18, 2025 11:09
Base automatically changed from governance-refactoring to feat/next September 23, 2025 12:22
@popenta popenta marked this pull request as ready for review September 23, 2025 13:06
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR removes the MultisigWrapper class that acted as an intermediary layer around the MultisigTransactionsFactory from the SDK. The wrapper is replaced with direct usage of the MultisigController from the SDK, simplifying the architecture and eliminating code duplication.

  • Removed the entire multisig.py file containing the MultisigWrapper class
  • Updated cli_multisig.py to use MultisigController directly instead of the wrapper
  • Renamed a function in cli_shared.py from _get_address_hrp to get_address_hrp_with_fallback and made it public

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
multiversx_sdk_cli/multisig.py Complete removal of the MultisigWrapper class and its methods
multiversx_sdk_cli/cli_multisig.py Refactored to use MultisigController directly, updated method calls and parameter handling
multiversx_sdk_cli/cli_shared.py Renamed function and made it public for broader usage
multiversx_sdk_cli/cli_governance.py Updated to use the renamed function and fixed getattr usage
multiversx_sdk_cli/cli_get.py Updated function calls to match new naming

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

address = Address.new_from_bech32(args.address)
else:
hrp = cli_shared._get_address_hrp(args)
hrp = cli_shared.get_address_hrp(args)
Copy link

Copilot AI Sep 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The function call should be get_address_hrp_with_fallback(args) to match the renamed function in cli_shared.py.

Copilot uses AI. Check for mistakes.
address = Address.new_from_bech32(args.address)
else:
hrp = cli_shared._get_address_hrp(args)
hrp = cli_shared.get_address_hrp(args)
Copy link

Copilot AI Sep 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The function call should be get_address_hrp_with_fallback(args) to match the renamed function in cli_shared.py.

Copilot uses AI. Check for mistakes.
address = Address.new_from_bech32(args.address)
else:
hrp = cli_shared._get_address_hrp(args)
hrp = cli_shared.get_address_hrp(args)
Copy link

Copilot AI Sep 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The function call should be get_address_hrp_with_fallback(args) to match the renamed function in cli_shared.py.

Copilot uses AI. Check for mistakes.
address = Address.new_from_bech32(args.address)
else:
hrp = cli_shared._get_address_hrp(args)
hrp = cli_shared.get_address_hrp(args)
Copy link

Copilot AI Sep 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The function call should be get_address_hrp_with_fallback(args) to match the renamed function in cli_shared.py.

Copilot uses AI. Check for mistakes.
@popenta popenta merged commit d0dcb40 into feat/next Sep 25, 2025
11 of 12 checks passed
@popenta popenta deleted the multisig-refactoring branch September 25, 2025 07:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants