@@ -139,18 +139,34 @@ export async function deepDiff({
139139 if ( type === '_eModeCategories' ) {
140140 if ( before . collateralBitmap !== undefined ) {
141141 before . collateralBitmap_decoded = (
142- await assetIndexesToAsset ( client , address , bitMapToIndexes ( BigInt ( before . collateralBitmap ) ) )
142+ await assetIndexesToAsset (
143+ client ,
144+ address ,
145+ bitMapToIndexes ( BigInt ( before . collateralBitmap || 0 ) ) ,
146+ )
143147 ) . toString ( ) ;
144148 after . collateralBitmap_decoded = (
145- await assetIndexesToAsset ( client , address , bitMapToIndexes ( BigInt ( after . collateralBitmap ) ) )
149+ await assetIndexesToAsset (
150+ client ,
151+ address ,
152+ bitMapToIndexes ( BigInt ( after . collateralBitmap || 0 ) ) ,
153+ )
146154 ) . toString ( ) ;
147155 }
148156 if ( before . borrowableBitmap !== undefined ) {
149157 before . borrowableBitmap_decoded = (
150- await assetIndexesToAsset ( client , address , bitMapToIndexes ( BigInt ( before . borrowableBitmap ) ) )
158+ await assetIndexesToAsset (
159+ client ,
160+ address ,
161+ bitMapToIndexes ( BigInt ( before . borrowableBitmap || 0 ) ) ,
162+ )
151163 ) . toString ( ) ;
152164 after . borrowableBitmap_decoded = (
153- await assetIndexesToAsset ( client , address , bitMapToIndexes ( BigInt ( after . borrowableBitmap ) ) )
165+ await assetIndexesToAsset (
166+ client ,
167+ address ,
168+ bitMapToIndexes ( BigInt ( after . borrowableBitmap || 0 ) ) ,
169+ )
154170 ) . toString ( ) ;
155171 }
156172 }
0 commit comments