MetacoSA / NBitcoin

Comprehensive Bitcoin library for the .NET framework.
MIT License
1.88k stars 848 forks source link

Display expected version when a version mismatch occurs in Base58Data #1046

Closed augustoproiete closed 3 years ago

augustoproiete commented 3 years ago

When a FormatException is thrown in Base58Data due to a version mismatch, the expected version bytes are not currently shown in the exception message.

image

System.FormatException : The version prefix does not match the expected one System.ReadOnlyMemory<Byte>[4]