fix constructor warning in EncodationStruct.cs
MODIFY
WalletWasabi/Gma/QrCodeNet/Encoding/DataEncodation/DataEncode.cs
WalletWasabi/Gma/QrCodeNet/Encoding/DataEncodation/DataEncode.cs
@@ -51,10 +51,7 @@ namespace Gma.QrCodeNet.Encoding.DataEncodation
throw new ArgumentException($"{nameof(dataCodewords)} num of bytes not equal to {nameof(vcStruct.VersionDetail.NumDataBytes)} for current version");
}
- var encStruct = new EncodationStruct(vcStruct)
- {
- DataCodewords = dataCodewords
- };
+ var encStruct = new EncodationStruct(vcStruct, dataCodewords);
return encStruct;
}

MODIFY
WalletWasabi/Gma/QrCodeNet/Encoding/DataEncodation/EncodationStruct.cs
WalletWasabi/Gma/QrCodeNet/Encoding/DataEncodation/EncodationStruct.cs
@@ -4,9 +4,10 @@ namespace Gma.QrCodeNet.Encoding.DataEncodation
{
internal struct EncodationStruct
{
- internal EncodationStruct(VersionControlStruct vcStruct) : this()
+ internal EncodationStruct(VersionControlStruct vcStruct, BitList dataCodewords) : this()
{
VersionDetail = vcStruct.VersionDetail;
+ DataCodewords = dataCodewords;
}
internal VersionDetail VersionDetail { get; set; }

fix constructor warning in EncodationStruct.cs