public void IsSmartContractInternalCall_Failure() { var script = new NBitcoin.Script(new byte[] { 0xFF, (byte)ScOpcodeType.OP_INTERNALCONTRACTTRANSFER, 0xFF }); Assert.False(script.IsSmartContractInternalCall()); }
public void IsSmartContractInternalCall_Success() { var script = new NBitcoin.Script(new byte[] { (byte)ScOpcodeType.OP_INTERNALCONTRACTTRANSFER }); Assert.True(script.IsSmartContractInternalCall()); }