Description
packages/contracts/defindex-adapter/src/lib.rs:135-138 calls get_or_not_initialized for DFX_VAULT inside deposit(). The equivalent branch is already tested for withdraw() (withdraw_panics_with_typed_error_when_dfx_vault_is_unset, lib.rs:362-380), but no test removes DFX_VAULT before calling deposit().
Acceptance Criteria
Note
This file also has two other PRs open against it right now (#634, #622) touching unrelated parts of the same source — if you hit a merge conflict on pickup, it's just from those landing first, not a real dependency on either.
Description
packages/contracts/defindex-adapter/src/lib.rs:135-138callsget_or_not_initializedforDFX_VAULTinsidedeposit(). The equivalent branch is already tested forwithdraw()(withdraw_panics_with_typed_error_when_dfx_vault_is_unset, lib.rs:362-380), but no test removesDFX_VAULTbefore callingdeposit().Acceptance Criteria
DFX_VAULTfrom instance storage viaenv.as_contract, and assertsadapter.deposit(&amount)panics with the typedNotInitializederror.cargo test -p defindex-adapterpasses.Note
This file also has two other PRs open against it right now (#634, #622) touching unrelated parts of the same source — if you hit a merge conflict on pickup, it's just from those landing first, not a real dependency on either.