File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -505,11 +505,14 @@ func (r *rpcServer) MintAsset(ctx context.Context,
505505 return nil , err
506506 }
507507
508- // If a custom decimal display is set, we require the AssetMeta to be
509- // set. That means the user has to at least specify the meta type.
508+ // If a custom decimal display is set, but the user didn't specify an
509+ // asset meta, then we'll assume an opaque type.
510510 if req .Asset .DecimalDisplay != 0 && req .Asset .AssetMeta == nil {
511- return nil , fmt .Errorf ("decimal display requires asset " +
512- "metadata" )
511+ rpcsLog .Infof ("No asset meta specified, using opaque type " +
512+ "for decimal display %d" , req .Asset .DecimalDisplay )
513+
514+ req .Asset .AssetMeta = & taprpc.AssetMeta {}
515+
513516 }
514517
515518 // Decimal display doesn't really make sense for collectibles.
You can’t perform that action at this time.
0 commit comments