Skip to content

Commit

Permalink
fix: account sign not updated to use SerializeTx()
Browse files Browse the repository at this point in the history
  • Loading branch information
randomshinichi committed Nov 26, 2019
1 parent 0f45e0a commit 9217c01
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cmd/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,11 @@ func signFunc(cmd *cobra.Command, args []string) (err error) {
return err
}

txSignedBase64, txHash, signature, err := transactions.SignHashTx(account, tx, config.Node.NetworkID)
txSigned, txHash, signature, err := transactions.SignHashTx(account, tx, config.Node.NetworkID)
if err != nil {
return err
}
txSignedB64, err := transactions.SerializeTx(txSigned)
if err != nil {
return err
}
Expand All @@ -183,7 +187,7 @@ func signFunc(cmd *cobra.Command, args []string) (err error) {
"Signing account address", account.Address,
"Signature", signature,
"Unsigned", txUnsignedBase64,
"Signed", txSignedBase64,
"Signed", txSignedB64,
"Hash", txHash,
)
return nil
Expand Down

0 comments on commit 9217c01

Please sign in to comment.