Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into burned
Browse files Browse the repository at this point in the history
  • Loading branch information
casey committed Oct 10, 2023
2 parents 143e8b1 + b456340 commit eb56fb8
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 23 deletions.
44 changes: 22 additions & 22 deletions src/runes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1073,17 +1073,17 @@ mod tests {
[
(
OutPoint {
txid: txid1,
txid: txid0,
vout: 0
},
vec![(id1, u128::max_value())]
vec![(id0, u128::max_value())]
),
(
OutPoint {
txid: txid0,
txid: txid1,
vout: 0
},
vec![(id0, u128::max_value())]
vec![(id1, u128::max_value())]
),
]
);
Expand Down Expand Up @@ -1249,17 +1249,17 @@ mod tests {
[
(
OutPoint {
txid: txid1,
txid: txid0,
vout: 0
},
vec![(id1, u128::max_value())]
vec![(id0, u128::max_value())]
),
(
OutPoint {
txid: txid0,
txid: txid1,
vout: 0
},
vec![(id0, u128::max_value())]
vec![(id1, u128::max_value())]
),
]
);
Expand Down Expand Up @@ -1500,18 +1500,18 @@ mod tests {
[
(
OutPoint {
txid: txid1,
txid: txid0,
vout: 0
},
vec![(id1, u128::max_value())]
vec![(id0, u128::max_value())]
),
(
OutPoint {
txid: txid0,
txid: txid1,
vout: 0
},
vec![(id0, u128::max_value())]
)
vec![(id1, u128::max_value())]
),
]
);

Expand Down Expand Up @@ -1754,17 +1754,17 @@ mod tests {
[
(
OutPoint {
txid: txid1,
txid: txid0,
vout: 0
},
vec![(id1, u128::max_value())]
vec![(id0, u128::max_value())]
),
(
OutPoint {
txid: txid0,
txid: txid1,
vout: 0
},
vec![(id0, u128::max_value())]
vec![(id1, u128::max_value())]
),
]
);
Expand Down Expand Up @@ -1984,18 +1984,18 @@ mod tests {
[
(
OutPoint {
txid: txid1,
txid: txid0,
vout: 0
},
vec![(id1, u128::max_value())]
vec![(id0, u128::max_value())]
),
(
OutPoint {
txid: txid0,
txid: txid1,
vout: 0
},
vec![(id0, u128::max_value())]
)
vec![(id1, u128::max_value())]
),
]
);

Expand Down
5 changes: 4 additions & 1 deletion src/runes/runestone.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@ impl Runestone {

if let Some(etching) = self.etching {
varint::encode_to_vec(etching.rune.0, &mut payload);
varint::encode_to_vec(etching.divisibility.into(), &mut payload);

if etching.divisibility != 0 {
varint::encode_to_vec(etching.divisibility.into(), &mut payload);
}
}

let mut builder = script::Builder::new()
Expand Down

0 comments on commit eb56fb8

Please sign in to comment.