cennznet / plug-blockchain

PL^G: a framework for building customised blockchains
GNU General Public License v3.0
11 stars 3 forks source link

fix build issue #30

Closed xlc closed 5 years ago

xlc commented 5 years ago

for some reason it stops compiling in master

jordy25519 commented 5 years ago

If the doughnut-rs crate updated it would break as the signature type changed in new versions.

~Changes look good to me~

The doughnut signature type (H512) doesn't implement AsRef<[u8]> but it can borrow as [u8;64] The trait was there to pass through for this: https://github.com/cennznet/plug-blockchain/blob/fb2fd0cd4ff500fdbf2baab255c176c485a7222d/node/primitives/src/plug_extrinsic.rs#L177