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

fix: should not change agentToOperator while newAgent is zero address #579

Merged
merged 1 commit into from
Jul 24, 2024

Conversation

cosinlink
Copy link
Collaborator

@cosinlink cosinlink commented Jul 24, 2024

Description

it should not change agentToOperator while newAgent is zero address in updateAgent function

Example

before this fix:
validator A set agent1
agentToOperator[address(0)] == address(0)
validator A update agent to address(0) => caused agentToOperator[address(0)] == validator A

after fix:
validator A set agent1
agentToOperator[address(0)] == address(0)
validator A update agent to address(0) => agentToOperator[address(0)] == address(0)

Changes

Notable changes:

  • not change agentToOperator while newAgent is zero address in updateAgent function

  • ...

@cosinlink cosinlink changed the title fix: not set agentToOperator while newAgent is zero address fix: should not set agentToOperator while newAgent is zero address Jul 24, 2024
@cosinlink cosinlink changed the title fix: should not set agentToOperator while newAgent is zero address fix: should not change agentToOperator while newAgent is zero address Jul 24, 2024
@unclezoro unclezoro added this pull request to the merge queue Jul 24, 2024
Merged via the queue into develop with commit f11346c Jul 24, 2024
5 checks passed
github-merge-queue bot pushed a commit that referenced this pull request Jul 24, 2024
fix: not set agentToOperator while newAgent is zero address (#579)
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.

5 participants