CurrencyAsset constructor
CurrencyAsset({})
Implementation
CurrencyAsset({
required this.policyId,
required this.assetName,
String? fingerprint,
required this.quantity,
required this.initialMintTxHash,
this.metadata,
}) : assetId = '$policyId$assetName',
name = hex2str
.encode(assetName), //if assetName is not hex, this will usualy fail
fingerprint = fingerprint ??
calculateFingerprint(policyId: policyId, assetNameHex: assetName);