Skip to content

Commit

Permalink
Fix Build comments
Browse files Browse the repository at this point in the history
  • Loading branch information
muXxer committed Feb 28, 2024
1 parent ed5fd4e commit a434856
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions builder/transaction_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -659,12 +659,13 @@ func (b *TransactionBuilder) MinRequiredAllottedMana(rmc iotago.Mana, blockIssue
return dummyBlock.ManaCost(rmc)
}

// Build signs the inputs with the given signer and returns the built payload.
// Build signs the transaction essence and returns the built payload.
func (b *TransactionBuilder) Build() (*iotago.SignedTransaction, error) {
return b.build(true)
}

// Build signs the inputs with the given signer and returns the built payload.
// build adds a signature and returns the built payload.
// Depending on the value of "signEssence" it either signs the essence or adds empty signatures.
func (b *TransactionBuilder) build(signEssence bool) (*iotago.SignedTransaction, error) {
switch {
case b.occurredBuildErr != nil:
Expand Down

0 comments on commit a434856

Please sign in to comment.