transaction: drop Contract transaction type

This commit is contained in:
Roman Khimov 2020-06-05 12:17:16 +03:00
parent 6853470603
commit f445f7c602
12 changed files with 110 additions and 338 deletions

View file

@ -102,7 +102,7 @@ func TestScriptFromWitness(t *testing.T) {
func TestGetHeader(t *testing.T) {
bc := newTestChain(t)
tx := transaction.NewContractTX()
tx := transaction.NewInvocationTX([]byte{byte(opcode.PUSH1)}, 0)
tx.ValidUntilBlock = bc.BlockHeight() + 1
assert.Nil(t, addSender(tx))
assert.Nil(t, signTx(bc, tx))