Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve change weight #2545

Merged
merged 13 commits into from
Jan 14, 2025
Merged

Improve change weight #2545

merged 13 commits into from
Jan 14, 2025

Conversation

felipemadero
Copy link
Collaborator

@felipemadero felipemadero commented Jan 9, 2025

Why this should be merged

How this works

How this was tested

How is this documented

@sukantoraymond sukantoraymond added this to the Reported Issues milestone Jan 10, 2025
@sukantoraymond
Copy link
Collaborator

Can be made in a separate PR but we should have test case for this in e2e

@meaghanfitzgerald meaghanfitzgerald linked an issue Jan 10, 2025 that may be closed by this pull request
@@ -0,0 +1,88 @@
// Copyright (C) 2023, Ava Labs, Inc. All rights reserved.
Copy link
Collaborator

Choose a reason for hiding this comment

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

I was looking into the similar thing and I think these functions should be not part of validatormanager sdk pkg, but new validator sdk as this pkg is about validatormanager smart contract

}
var remainingBalanceOwnerAddr, disableOwnerAddr string
hrp := key.GetHRP(network.ID)
if len(vdrInfo.RemainingBalanceOwner.Addrs) > 0 {
Copy link
Collaborator

Choose a reason for hiding this comment

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

should we check if vdrInfo.RemainingBalanceOwner is not nil to avoid possible crash

@arturrez
Copy link
Collaborator

ref: #2556 - create separate issue for Network model deprecation

@felipemadero felipemadero merged commit 4aa2ac1 into main Jan 14, 2025
37 checks passed
@felipemadero felipemadero deleted the improve-change-weight branch January 14, 2025 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done ✅
3 participants