Tier: Hard
Description: Add tests for reentrancy detection and validate the ReentrancyDetected error.
Tasks:
- Attempt reentrant calls to escrow operations
- Verify ReentrancyDetected error (code 15)
- Test normal non-reentrant calls
Acceptance Criteria:
- Reentrant calls are detected and rejected
- Error variant is returned correctly
- Normal calls succeed
Files: contracts/shipment/src/test.rs, contracts/shipment/src/test_reentrancy_guard.rs
Tier: Hard
Description: Add tests for reentrancy detection and validate the ReentrancyDetected error.
Tasks:
Acceptance Criteria:
Files:
contracts/shipment/src/test.rs,contracts/shipment/src/test_reentrancy_guard.rs