Skip to content

Add integration test for re-initialization attempt reverting without modifying contract state #584

Description

@Chucks1093

Summary

Calling the initialize function on an already-initialized contract should revert. An integration test should confirm the revert occurs, the error code is correct, and none of the existing protocol config values were overwritten by the failed call.

Scope

  • Initialize the contract with admin A and fee bps 300
  • Attempt to re-initialize with admin B and fee bps 500
  • Assert the second call reverts with the already-initialized error code
  • Assert admin and fee bps remain as set in the first initialization

Acceptance Criteria

  • Re-initialization reverts with already-initialized error code
  • Admin unchanged after failed re-init
  • Fee bps unchanged after failed re-init
  • Fee recipient unchanged after failed re-init

ETA: 12 hours


Coordinate on Telegram

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions