MCPcopy Create free account
hub / github.com/BitVM/BitVM / test_validate_invalid_script_sig

Function test_validate_invalid_script_sig

bridge/tests/bridge/client/validate.rs:42–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40
41#[tokio::test]
42async fn test_validate_invalid_script_sig() {
43 let (esplora, mut data, _) = setup_and_create_graphs().await;
44
45 let deposit_tx = data.peg_in_graphs[1].peg_in_deposit_transaction.tx_mut();
46 deposit_tx.input[0].script_sig = generate_burn_script();
47
48 let result = BitVMClient::validate_data(&esplora, &data).await;
49
50 assert!(!result);
51}
52
53#[tokio::test]
54async fn test_validate_invalid_sequence() {

Callers

nothing calls this directly

Calls 3

generate_burn_scriptFunction · 0.85
setup_and_create_graphsFunction · 0.70
tx_mutMethod · 0.45

Tested by

no test coverage detected