From 4dbaf2a123ae5e350508587e828629fb3a7460a4 Mon Sep 17 00:00:00 2001 From: Anna Shaleva Date: Tue, 11 Oct 2022 12:55:51 +0300 Subject: [PATCH] smartcontract: add comment to GetCompleteTransaction --- pkg/smartcontract/context/context.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/smartcontract/context/context.go b/pkg/smartcontract/context/context.go index 13d2927f7..2974e2675 100644 --- a/pkg/smartcontract/context/context.go +++ b/pkg/smartcontract/context/context.go @@ -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 {