Skip to content

Commit

Permalink
resolve seed on stand alone signature
Browse files Browse the repository at this point in the history
  • Loading branch information
tolitius committed Mar 2, 2018
1 parent 35c05e8 commit d813a12
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions cmd/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,10 +218,15 @@ func wrapEnvelope(envelope *xdr.TransactionEnvelope, muts []b.TransactionMutator

func submitStandalone(conf *config, sourceAccount string, muts []b.TransactionMutator) int32 {

seed, err := resolveSeed(sourceAccount)
seed := sourceAccount
err := validateSeed(seed)

if err != nil {
log.Fatalf("could not submit transaction: %v", err)
seed, err = resolveSeed("")

if err != nil {
log.Fatalf("could not find a valid seed to submit transaction: %v", err)
}
}

header := txHeader{sourceAccount: seed}.
Expand Down

0 comments on commit d813a12

Please sign in to comment.