Skip to content

Commit

Permalink
Add some debugs
Browse files Browse the repository at this point in the history
  • Loading branch information
raphjaph committed Nov 22, 2024
1 parent dcdff0a commit 85169f9
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/subcommand/wallet/split.rs
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,8 @@ impl Split {
..default()
};

dbg!(&runestone);

let mut output = Vec::new();

let runestone_script_pubkey = runestone.encipher();
Expand Down Expand Up @@ -342,7 +344,7 @@ impl Split {
}

pretty_assertions::assert_eq!(
Runestone::decipher(&tx),
dbg!(Runestone::decipher(&tx)),
Some(Artifact::Runestone(runestone)),
);

Expand Down Expand Up @@ -1347,16 +1349,16 @@ mod tests {
#[test]
fn oversize_op_return_is_an_error() {
let balances = [
(outpoint(0), [(Rune(0), 10_000_000_000)].into()),
(outpoint(1), [(Rune(1), 10_000_000_000)].into()),
(outpoint(0), [(Rune(0), 5_000_000_000)].into()),
(outpoint(1), [(Rune(1), 5_000_000_000)].into()),
]
.into();

let splits = Splitfile {
outputs: (0..10)
.map(|i| splitfile::Output {
address: address(i).clone(),
runes: [(Rune((i % 2 == 0) as u128), 1_000_000_000)].into(),
runes: [(Rune(i as u128 % 2), 1_000_000_000)].into(),
value: None,
})
.collect(),
Expand Down Expand Up @@ -1398,16 +1400,16 @@ mod tests {
#[test]
fn oversize_op_return_is_allowed_with_flag() {
let balances = [
(outpoint(0), [(Rune(0), 10_000_000_000)].into()),
(outpoint(1), [(Rune(1), 10_000_000_000)].into()),
(outpoint(0), [(Rune(0), 5_000_000_000)].into()),
(outpoint(1), [(Rune(1), 5_000_000_000)].into()),
]
.into();

let splits = Splitfile {
outputs: (0..10)
.map(|i| splitfile::Output {
address: address(i).clone(),
runes: [(Rune((i % 2 == 0) as u128), 1_000_000_000)].into(),
runes: [(Rune(i as u128 % 2), 1_000_000_000)].into(),
value: None,
})
.collect(),
Expand Down

0 comments on commit 85169f9

Please sign in to comment.