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 {