Skip to content

Commit

Permalink
Comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan-Ethernal committed Jun 2, 2023
1 parent 48e69de commit a843c6d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion e2e-polybft/framework/test-server.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"io/ioutil"
"math/big"
"strconv"
"strings"
"sync/atomic"
"testing"
"time"
Expand Down Expand Up @@ -223,7 +224,12 @@ func (t *TestServer) RootchainFundFor(accounts []types.Address, amounts []*big.I
}

if err := runCommand(t.clusterConfig.Binary, args, t.clusterConfig.GetStdout("bridge")); err != nil {
return fmt.Errorf("failed to fund account %s on the rootchain: %w", t.address, err)
acctAddrs := make([]string, len(accounts))
for i, acc := range accounts {
acctAddrs[i] = acc.String()
}

return fmt.Errorf("failed to fund accounts (%s) on the rootchain: %w", strings.Join(acctAddrs, ","), err)
}

return nil
Expand Down

0 comments on commit a843c6d

Please sign in to comment.