transaction: implement AddVerificationHash() method

This commit is contained in:
Evgenii Stratonikov 2020-03-12 19:47:09 +03:00
parent ca476cbf8a
commit cdf025bf89
4 changed files with 11 additions and 14 deletions

View file

@ -515,11 +515,7 @@ func (c *Client) SignAndPushInvocationTx(script []byte, acc *wallet.Account, sys
if err != nil {
return txHash, errors.Wrap(err, "failed to get address")
}
tx.Attributes = append(tx.Attributes,
transaction.Attribute{
Usage: transaction.Script,
Data: addr.BytesBE(),
})
tx.AddVerificationHash(addr)
}
if err = acc.SignTx(tx); err != nil {