Skip to content

Commit

Permalink
allow null in return values of handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeRx committed Jan 27, 2025
1 parent 6397726 commit e8d805c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions SIPS/sip-29.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ title: Snap Assets API
status: Draft
author: Daniel Rocha (@danroc), Guillaume Roux (@GuillaumeRx)
created: 2024-12-05
updated: 2025-01-25
---

## Abstract
Expand Down Expand Up @@ -89,7 +90,7 @@ The type for an `onAssetsLookup` handler function’s return value is:

```typescript
type OnAssetsLookupResponse = {
assets: Record<Caip19AssetType, AssetMetadata>;
assets: Record<Caip19AssetType, AssetMetadata | null>;
};
```

Expand Down Expand Up @@ -140,7 +141,7 @@ type FromAsset = Conversion["from"];
type ToAsset = Conversion["to"];

type OnAssetsConversionResponse = {
conversionRates: Record<From, Record<To, AssetConversionRate>>;
conversionRates: Record<From, Record<To, AssetConversionRate | null>>;
};
```

Expand Down

0 comments on commit e8d805c

Please sign in to comment.