transaction: implement AddVerificationHash() method
This commit is contained in:
parent
ca476cbf8a
commit
cdf025bf89
4 changed files with 11 additions and 14 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue