You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem Statement.contracts/batch-wallet/src/lib.rs batch_create_wallets panics (DuplicateWallet = 7) when the sameWalletCreateRequest appears twice in one batch. A
partial-success outcome is more composable.
Why it matters. Atomic-or-nothing is restrictive against
rescue/restoration flows that prefer best-effort semantics.
Expected Outcome. When duplicates appear in a batch, return
them as WalletCreateResult::Failure(owner, code) while processing
the others. Tests prove partial-success behavior.
Acceptance Criteria.
New test: send N+1 requests, M duplicates → result reports failed=M, others succeed, event wallet_duplicate emitted per
duplicate.
contracts/batch-wallet/src/lib.rsbatch_create_walletspanics (DuplicateWallet = 7) when thesame
WalletCreateRequestappears twice in one batch. Apartial-success outcome is more composable.
rescue/restoration flows that prefer best-effort semantics.
them as
WalletCreateResult::Failure(owner, code)while processingthe others. Tests prove partial-success behavior.
failed=M, others succeed, eventwallet_duplicateemitted perduplicate.
contracts/batch-wallet/src/lib.rs.contracts,batch-wallet,needs-spec.