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
827
827
Exponent : u .Exponent ,
828
828
Aliases : u .Aliases ,
829
829
}
830
+ if u .Aliases == nil {
831
+ converted [i ].Aliases = []string {}
832
+ }
830
833
}
831
834
return converted
832
835
}
Original file line number Diff line number Diff line change @@ -240,6 +240,7 @@ func TestBankQuerierMetadata(t *testing.T) {
240
240
{
241
241
Denom : "utest" ,
242
242
Exponent : 0 ,
243
+ Aliases : []string {},
243
244
},
244
245
},
245
246
}
@@ -269,6 +270,7 @@ func TestBankQuerierMetadata(t *testing.T) {
269
270
{
270
271
Denom : "utest" ,
271
272
Exponent : 0 ,
273
+ Aliases : []string {},
272
274
},
273
275
},
274
276
}
@@ -292,6 +294,7 @@ func TestBankQuerierAllMetadata(t *testing.T) {
292
294
{
293
295
Denom : "utest" ,
294
296
Exponent : 0 ,
297
+ Aliases : []string {},
295
298
},
296
299
},
297
300
},
@@ -321,6 +324,7 @@ func TestBankQuerierAllMetadata(t *testing.T) {
321
324
{
322
325
Denom : "utest" ,
323
326
Exponent : 0 ,
327
+ Aliases : []string {},
324
328
},
325
329
},
326
330
},
You can’t perform that action at this time.
0 commit comments