fix(tests): claim burn into the account that owns the proof#1992
fix(tests): claim burn into the account that owns the proof#19920xPepeSilvia wants to merge 1 commit intotari-project:developmentfrom
Conversation
The burn transaction uses the default account's public key for the ownership proof, but the claim steps were targeting non-default accounts (ACCOUNT/ACCOUNT_1). This caused ownership proof validation to fail because the claiming account's key didn't match the proof signer. Closes tari-project#1974 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
There was a problem hiding this comment.
Code Review
This pull request modifies the transfer.feature integration test by changing the account used in the burn claim step from specific account names (ACCOUNT, ACCOUNT_1) to a generic ACC. While this change likely resolves a validation error, the review feedback points out that it breaks the logical flow and intent of the tests, as the funds are no longer credited to the sender accounts described in the test comments. It is recommended to maintain the original account names and instead set them as the default account before the burn step or update the step definition to support specific account names.
|
|
||
| When I wait for proof BURN_PROOF to confirm on wallet MINOTARI_WALLET | ||
| When I claim burn BURN_PROOF and spend it into account ACCOUNT using wallet daemon WALLET_D | ||
| When I claim burn BURN_PROOF and spend it into account ACC using wallet daemon WALLET_D |
There was a problem hiding this comment.
While this change fixes the ownership proof validation error by claiming the burn into the default account (ACC), it creates an inconsistency with the test's stated intent. The comments at lines 21 and 30 indicate that the burn is intended to fund the 'sender account' (ACCOUNT). By claiming the funds into ACC instead, the sender account does not receive the burned tokens, and the test no longer verifies that these funds are correctly credited to and usable by the sender. A more robust fix would be to set ACCOUNT as the default account before the burn step (using 'When I set the default account for WALLET_D to ACCOUNT') or to update the burn step definition to accept a specific account name.
|
|
||
| When I wait for proof BURN_PROOF to confirm on wallet MINOTARI_WALLET | ||
| When I claim burn BURN_PROOF and spend it into account ACCOUNT_1 using wallet daemon WALLET_D | ||
| When I claim burn BURN_PROOF and spend it into account ACC using wallet daemon WALLET_D |
There was a problem hiding this comment.
Similar to the change at line 28, claiming the burn into ACC instead of ACCOUNT_1 fixes the validation failure but bypasses the intended funding of the sender account. The comment at line 85 still refers to funding the 'sender account', which is now inaccurate since the funds are going to ACC. Consider setting ACCOUNT_1 as the default account before the burn to maintain the test's logic and coverage.
Summary
Closes #1974
Test plan
🤖 Generated with Claude Code