fix(operator): soft-revoke wallet access instead of deleting the row

This commit is contained in:
CleverWild
2026-09-07 15:18:31 +02:00
parent a37af6bc1c
commit 6e21505a7f
9 changed files with 358 additions and 66 deletions

View File

@@ -381,6 +381,7 @@ mod tests {
id: WALLET_ACCESS_ID,
wallet_id: EvmWalletId::from_raw(5),
client_id: 20,
revoked_at: None,
created_at: SqliteTimestamp(Utc::now()),
},
chain: CHAIN_ID,
@@ -478,6 +479,9 @@ mod tests {
conn: &mut DatabaseConnection,
shared: &SharedGrantSettings,
) -> EvmBasicGrant {
// The seeded id deliberately wins over `shared.wallet_access_id`: every other field
// below is read from `shared`, but a caller-supplied access id would almost never
// reference a row that actually exists under foreign-key enforcement.
let wallet_access_id = seed_wallet_access(conn).await;
#[expect(