File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
packages/snaps-sdk/src/types/handlers Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 55 string ,
66 optional ,
77 record ,
8+ nullable ,
89} from '@metamask/superstruct' ;
910import { CaipAssetTypeStruct , type CaipAssetType } from '@metamask/utils' ;
1011
@@ -17,7 +18,7 @@ export const AssetConversionStruct = object({
1718export const OnAssetsConversionResponseStruct = object ( {
1819 conversionRates : record (
1920 CaipAssetTypeStruct ,
20- record ( CaipAssetTypeStruct , AssetConversionStruct ) ,
21+ record ( CaipAssetTypeStruct , nullable ( AssetConversionStruct ) ) ,
2122 ) ,
2223} ) ;
2324
Original file line number Diff line number Diff line change 88 refine ,
99 string ,
1010 record ,
11+ nullable ,
1112} from '@metamask/superstruct' ;
1213import {
1314 assert ,
@@ -46,7 +47,7 @@ export const FungibleAssetMetadataStruct = object({
4647} ) ;
4748
4849export const OnAssetsLookupResponseStruct = object ( {
49- assets : record ( CaipAssetTypeStruct , FungibleAssetMetadataStruct ) ,
50+ assets : record ( CaipAssetTypeStruct , nullable ( FungibleAssetMetadataStruct ) ) ,
5051} ) ;
5152
5253export type FungibleAssetMetadata = Infer < typeof FungibleAssetMetadataStruct > ;
You can’t perform that action at this time.
0 commit comments