Skip to content

Commit

Permalink
Merge pull request #89 from ElrondNetwork/EN-12950-refactor-tx-get-da…
Browse files Browse the repository at this point in the history
…ta-for-signing

Added todo comment for getting data for signing from core
  • Loading branch information
AdoAdoAdo authored Sep 9, 2022
2 parents 168a562 + 6792419 commit afff372
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions builders/txBuilder.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ func (builder *txBuilder) ApplyUserSignatureAndGenerateTx(
}

func (builder *txBuilder) signTx(unsignedTx *data.Transaction, skBytes []byte) ([]byte, error) {
// TODO: refactor to use Transaction from core so that GetDataForSigning can be used (this logic is duplicated in core)
unsignedMessage, err := json.Marshal(unsignedTx)
if err != nil {
return nil, err
Expand Down

0 comments on commit afff372

Please sign in to comment.