add Require over provideBTCFundingProof call
@@ -34,6 +34,7 @@ contract VendingMachine {
bytes memory _bitcoinHeaders
) public {
Deposit _d = Deposit(_depositAddress);
+ require(
_d.provideBTCFundingProof(
_txVersion,
_txInputVector,
@@ -43,7 +44,8 @@ contract VendingMachine {
_merkleProof,
_txIndexInBlock,
_bitcoinHeaders
- );
+ ),
+ "failed to provide funding proof");
// mint the signer fee to the Deposit
tbtcToken.mint(_depositAddress, DepositUtils.signerFee());
}
