Skip to content

Ensure governance parameter updates are atomic #174

@Baskarayelu

Description

@Baskarayelu

Ensure governance parameter updates are atomic

Description

  • Multi-parameter update flows can leave partial state when one validation fails mid-sequence.

Requirements and context

  • Apply all-or-nothing semantics to grouped config updates.
  • Keep validation deterministic.

Suggested execution

  • Validate full payload first, then apply updates.
  • Revert entire transaction on any invalid field.

Test and commit

  • Add tests for mixed valid/invalid update payloads.
  • Verify no partial state change on revert.

Example commit message

  • fix(contracts): make grouped governance updates atomic

Guidelines

  • Avoid external calls during configuration writes.
  • Emit events only after successful full apply.

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programcontractsSmart contract workgovernanceGovernance logicintegrityIntegrity checkssoliditySolidity and EVM

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions