Fix bug in serialisation of extension

This commit is contained in:
QuantumEntangledAndy committed 2021-08-02 09:56:24 +07:00
1 parent ffdbdb6777
commit babc2fa81a
1 file changed
+1 -1
+1 -1
View File
@@ -35,7 +35,7 @@ impl Bc {
// Now get the offset of the payload
payload_offset = if has_payload_offset(self.meta.class) {
// If we're required to put binary length, put 0 if we have no binary
Some(if modern.payload.is_some() {
Some(if modern.extension.is_some() {
ext_len as u32
} else {
0