You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And in the tests we have to do this to make it work (two different quotation marks)
it('should fail with correct error message when introspected input bytecode of a sibling UTXO does not match',()=>{consttx=newTransactionBuilder({ provider }).addInput(siblingIntrospectionUtxo,siblingIntrospectionContract.unlock.spend()).addInput(incorrectContractUtxo,incorrectContract.unlock.spend(bobPub,bobSignatureTemplate)).addOutput({to: siblingIntrospectionContract.address,amount: siblingIntrospectionUtxo.satoshis}).addOutput({to: correctContract.address,amount: incorrectContractUtxo.satoshis-2000n});expect(tx).toFailRequireWith('SiblingIntrospection.cash:7 Require statement failed at input 0 in contract SiblingIntrospection.cash at line 7 with the following message: input bytecode should match.');expect(tx).toFailRequireWith('Failing statement: require(inputBytecode == expectedLockingBytecode, \'input bytecode should match\')');});it('should fail with correct error message when introspected output bytecode of a sibling UTXO does not match',()=>{consttx=newTransactionBuilder({ provider }).addInput(siblingIntrospectionUtxo,siblingIntrospectionContract.unlock.spend()).addInput(correctContractUtxo,correctContract.unlock.spend(alicePub,newSignatureTemplate(alicePriv))).addOutput({to: siblingIntrospectionContract.address,amount: siblingIntrospectionUtxo.satoshis}).addOutput({to: incorrectContract.address,amount: correctContractUtxo.satoshis-2000n});expect(tx).toFailRequireWith('SiblingIntrospection.cash:11 Require statement failed at input 0 in contract SiblingIntrospection.cash at line 11 with the following message: output bytecode should match.');expect(tx).toFailRequireWith('Failing statement: require(outputBytecode == expectedLockingBytecode, "output bytecode should match")');});
The text was updated successfully, but these errors were encountered:
We have this contract:
And in the tests we have to do this to make it work (two different quotation marks)
The text was updated successfully, but these errors were encountered: