Skip to content

Commit

Permalink
fix: rebase witness
Browse files Browse the repository at this point in the history
  • Loading branch information
jjyr committed Apr 9, 2019
1 parent 39c0263 commit 823561d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/src/transaction.rs
Expand Up @@ -428,18 +428,18 @@ mod test {
Script::default(),
None,
))
.input(CellInput::new(OutPoint::new(H256::zero(), 0), vec![]))
.input(CellInput::new(OutPoint::new(H256::zero(), 0), 0, vec![]))
.witness(vec![vec![7, 8, 9]])
.build();

assert_eq!(
tx.hash(),
H256::from_hex_str("7e1e256d6882809b7dfb55d002e54c5b4fbdbbbe8ce906aa6eae1b429de4d3d8")
H256::from_hex_str("8e23669b744ed93805f81999602a2640d99afa821a062fb5816b4b903c973f90")
.unwrap()
);
assert_eq!(
tx.witness_hash(),
H256::from_hex_str("93d363096f3901651b718d093751aa78ce7b56274850841a3e4134fe14ffb120")
H256::from_hex_str("652396516abfe2fb64fdbe574b909c66cdb42a7e62f7674a39bb8b94634031c4")
.unwrap()
);
}
Expand Down

0 comments on commit 823561d

Please sign in to comment.