Skip to content

Add unit tests for the contract initialisation function setting all state fields correctly #723

Description

@Chucks1093

Summary

The contract initialisation function sets the admin address, base price, protocol fee, and treasury address. Unit tests should confirm every field is readable from contract state immediately after initialisation and that calling initialise a second time panics with already_initialised.

Scope

  • Call initialise with known values and assert each field is readable from state
  • Assert calling initialise a second time panics with already_initialised
  • Assert state is unchanged after the second initialise attempt

Acceptance Criteria

  • All fields readable from state after initialisation
  • Second initialise panics with already_initialised
  • State unchanged after second attempt

ETA: 12 hours


Coordinate on Telegram

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions