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

Function test_validate_invalid_script_pubkey

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

Source from the content-addressed store, hash-verified

76
77#[tokio::test]
78async fn test_validate_invalid_script_pubkey() {
79 let (esplora, mut data, _) = setup_and_create_graphs().await;
80
81 let deposit_tx = data.peg_in_graphs[1].peg_in_deposit_transaction.tx_mut();
82 deposit_tx.output[0].script_pubkey = generate_burn_script();
83
84 let result = BitVMClient::validate_data(&esplora, &data).await;
85
86 assert!(!result);
87}
88
89async fn setup_and_create_graphs() -> (AsyncClient, BitVMClientPublicData, OutPoint) {
90 let config = setup_test().await;

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