File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -827,6 +827,9 @@ func ConvertSdkDenomUnitsToWasmDenomUnits(denomUnits []*banktypes.DenomUnit) []w
827827			Exponent : u .Exponent ,
828828			Aliases :  u .Aliases ,
829829		}
830+ 		if  u .Aliases  ==  nil  {
831+ 			converted [i ].Aliases  =  []string {}
832+ 		}
830833	}
831834	return  converted 
832835}
Original file line number Diff line number Diff line change @@ -240,6 +240,7 @@ func TestBankQuerierMetadata(t *testing.T) {
240240			{
241241				Denom :    "utest" ,
242242				Exponent : 0 ,
243+ 				Aliases :  []string {},
243244			},
244245		},
245246	}
@@ -269,6 +270,7 @@ func TestBankQuerierMetadata(t *testing.T) {
269270			{
270271				Denom :    "utest" ,
271272				Exponent : 0 ,
273+ 				Aliases :  []string {},
272274			},
273275		},
274276	}
@@ -292,6 +294,7 @@ func TestBankQuerierAllMetadata(t *testing.T) {
292294				{
293295					Denom :    "utest" ,
294296					Exponent : 0 ,
297+ 					Aliases :  []string {},
295298				},
296299			},
297300		},
@@ -321,6 +324,7 @@ func TestBankQuerierAllMetadata(t *testing.T) {
321324					{
322325						Denom :    "utest" ,
323326						Exponent : 0 ,
327+ 						Aliases :  []string {},
324328					},
325329				},
326330			},
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments