Description
Combine treasury-local #32 with a real cross-contract scenario: merchant calls update_merchant_payout_address between propose_settlement and execute_settlement, confirm funds go to the address current at execution time, and that this is the deliberately intended behavior (not a bug).
Requirements and context
If funds should instead be locked to the payout address at proposal time, that's a different (larger) issue — first confirm current behavior and document/test whichever is correct.
Suggested execution
git checkout -b test/e2e-payout-address-change-mid-settlement
- Files:
tests/invoice_treasury/mod.rs
Test and commit
Example commit message
test: cover merchant payout address change during settlement lifecycle
Closes #88
Guidelines
Timeframe: 48 hours. Depends on #32.
Description
Combine treasury-local #32 with a real cross-contract scenario: merchant calls
update_merchant_payout_addressbetweenpropose_settlementandexecute_settlement, confirm funds go to the address current at execution time, and that this is the deliberately intended behavior (not a bug).Requirements and context
If funds should instead be locked to the payout address at proposal time, that's a different (larger) issue — first confirm current behavior and document/test whichever is correct.
Suggested execution
tests/invoice_treasury/mod.rsTest and commit
cargo test --allpassesExample commit message
Guidelines
Timeframe: 48 hours. Depends on #32.