Skip to content

Commit

Permalink
refactor: cmd/tx.go uses new refactored SpendTx struct
Browse files Browse the repository at this point in the history
  • Loading branch information
randomshinichi committed Mar 23, 2019
1 parent 99ca385 commit f48377d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmd/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,11 @@ func txSpendFunc(cmd *cobra.Command, args []string) (err error) {
return errors.New("Error, missing or invalid fee")
}

base64Tx, err := aeternity.SpendTxStr(sender, recipient, *amount, *feeBigInt, "", ttl, nonce)
tx := aeternity.NewSpendTx(sender, recipient, *amount, *feeBigInt, "", ttl, nonce)
if err != nil {
return err
}
base64Tx, err := aeternity.BaseEncodeTx(tx)()
if err != nil {
return err
}
Expand Down

0 comments on commit f48377d

Please sign in to comment.