Skip to content

Commit

Permalink
Fix the order of the signers that are outputted
Browse files Browse the repository at this point in the history
  • Loading branch information
leighmcculloch committed Jan 22, 2020
1 parent 731c0d4 commit d53c0b7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion txnbuild/transaction_challenge_example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package txnbuild_test

import (
"fmt"
"sort"
"time"

"github.com/stellar/go/clients/horizon"
Expand Down Expand Up @@ -104,6 +105,7 @@ func ExampleVerifyChallengeTxThreshold() {
return
}
fmt.Println("Client Signers Verified:")
sort.Strings(signers)
for _, signer := range signers {
fmt.Println(signer, "weight:", signerSummary[signer])
}
Expand All @@ -123,6 +125,6 @@ func ExampleVerifyChallengeTxThreshold() {

// Output:
// Client Signers Verified:
// GDQNY3PBOJOKYZSRMK2S7LHHGWZIUISD4QORETLMXEWXBI7KFZZMKTL3 weight: 40
// GAS4V4O2B7DW5T7IQRPEEVCRXMDZESKISR7DVIGKZQYYV3OSQ5SH5LVP weight: 60
// GDQNY3PBOJOKYZSRMK2S7LHHGWZIUISD4QORETLMXEWXBI7KFZZMKTL3 weight: 40
}

0 comments on commit d53c0b7

Please sign in to comment.