smartcontract: add comment to GetCompleteTransaction

This commit is contained in:
Anna Shaleva 2022-10-11 12:55:51 +03:00
parent af658bc3e5
commit 4dbaf2a123

View file

@ -62,6 +62,8 @@ func NewParameterContext(typ string, network netmode.Magic, verif crypto.Verifia
}
}
// GetCompleteTransaction clears transaction witnesses (if any) and refills them with
// signatures from the parameter context.
func (c *ParameterContext) GetCompleteTransaction() (*transaction.Transaction, error) {
tx, ok := c.Verifiable.(*transaction.Transaction)
if !ok {