Currently NoteConsumptionChecker has two flaws which could be improved:
- We can not check that the sponsorship note carries the correct asset, i.e. the asset which is set as a fee asset in the network account against which the transaction is executed. We should provide the fee asset ID to the
NoteConsumptionChecker in order to assert that the ID of the fee asset in the sponsorship note matches the fee asset of the network account.
- If a sponsorship note is placed in the bundle alone, the only valid option of consuming it is by reclaiming it. We should provide a native account ID to the
NoteConsumptionChecker to check that the reclaimer ID equals to the native account ID.
Currently
NoteConsumptionCheckerhas two flaws which could be improved:NoteConsumptionCheckerin order to assert that the ID of the fee asset in the sponsorship note matches the fee asset of the network account.NoteConsumptionCheckerto check that the reclaimer ID equals to the native account ID.