core: remove Script attribute type

This commit is contained in:
Anna Shaleva 2020-04-29 10:49:09 +03:00
parent 40e153030d
commit 08f5708edb
7 changed files with 16 additions and 55 deletions

View file

@ -79,16 +79,12 @@ func getTX(t *testing.B, wif *keys.WIF) *transaction.Transaction {
tx := transaction.NewInvocationTX([]byte{0x51}, 1)
tx.Version = 0
tx.Sender = fromAddressHash
tx.Attributes = append(tx.Attributes,
transaction.Attribute{
Usage: transaction.Description,
Data: []byte(randString(10)),
})
tx.Attributes = append(tx.Attributes,
transaction.Attribute{
Usage: transaction.Script,
Data: fromAddressHash.BytesBE(),
})
return tx
}