Skip to content

Commit

Permalink
fix bug in Event serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
joemphilips committed Jun 24, 2020
1 parent 25d8804 commit 18c5ec7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bindings/src/adaptors/primitives.rs
Original file line number Diff line number Diff line change
Expand Up @@ -284,12 +284,14 @@ impl Writeable for FFIEvents {
for e in &self.events {
match e {
Event::FundingGenerationReady {ref temporary_channel_id, ref channel_value_satoshis, ref output_script, ref user_channel_id} => {
0u8.write(writer)?;
temporary_channel_id.write(writer)?;
channel_value_satoshis.write(writer)?;
output_script.write(writer)?;
user_channel_id.write(writer)?
}
Event::PendingHTLCsForwardable { ref time_forwardable } => {
5u8.write(writer)?;
let milli = time_forwardable.as_millis() as u64;
milli.write(writer)?;
},
Expand Down

0 comments on commit 18c5ec7

Please sign in to comment.