Skip to content

Commit

Permalink
refactor: All this refactoring has happened to enable CLI account sig…
Browse files Browse the repository at this point in the history
…n to work in this way
  • Loading branch information
randomshinichi committed Aug 13, 2019
1 parent 56ed4ac commit 4f39e9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,12 +166,12 @@ func signFunc(cmd *cobra.Command, args []string) (err error) {
}

txUnsignedBase64 := args[1]
txRLP, err := aeternity.Decode(txUnsignedBase64)
tx, err := aeternity.DeserializeTxStr(txUnsignedBase64)
if err != nil {
return err
}

txSignedBase64, txHash, signature, err := aeternity.SignHashTx(account, txRLP, aeternity.Config.Node.NetworkID)
txSignedBase64, txHash, signature, err := aeternity.SignHashTx(account, tx, aeternity.Config.Node.NetworkID)
if err != nil {
return err
}
Expand Down

0 comments on commit 4f39e9c

Please sign in to comment.