Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NBitcoin > 7.0.24 - BitcoinStream.ReadWrite(ref byte[]) does not work anymore #1200

Open
blackmennewstyle opened this issue Jan 22, 2024 · 1 comment

Comments

@blackmennewstyle
Copy link

Hello beautiful devs,

Since NBitcoin > 7.0.24, it's not possible anymore to perform BitcoinStream.ReadWrite(ref byte[])

error CS0311: The type 'byte[]' cannot be used as type parameter 'T' in the generic type or method 'BitcoinStream.ReadWrite<T>(ref T)'. There is no implicit reference conversion from 'byte[]' to 'NBitcoin.IBitcoinSerializable'

Is it normal?

@blackmennewstyle
Copy link
Author

Nevermind, i found that PR pretty explicit about the reason: #1173

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant