Skip to content

Commit

Permalink
reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
sainoe committed Sep 19, 2023
1 parent b67180c commit 13bdcee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
7 changes: 4 additions & 3 deletions tests/e2e/e2e_bank_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ func (s *IntegrationTestSuite) testBankTokenTransfer() {
s.Run("send_photon_between_accounts", func() {
var (
err error
valIdx = 0
c = s.chainA
chainEndpoint = fmt.Sprintf("http://%s", s.valResources[c.id][0].GetHostPort("1317/tcp"))
chainEndpoint = fmt.Sprintf("http://%s", s.valResources[c.id][valIdx].GetHostPort("1317/tcp"))
)

// define one sender and two recipient accounts
Expand Down Expand Up @@ -45,7 +46,7 @@ func (s *IntegrationTestSuite) testBankTokenTransfer() {
)

// alice sends tokens to bob
s.execBankSend(s.chainA, 0, alice.String(), bob.String(), tokenAmount.String(), standardFees.String(), false)
s.execBankSend(s.chainA, valIdx, alice.String(), bob.String(), tokenAmount.String(), standardFees.String(), false)

s.Require().Eventually(
func() bool {
Expand All @@ -68,7 +69,7 @@ func (s *IntegrationTestSuite) testBankTokenTransfer() {
beforeAliceUAtomBalance, beforeBobUAtomBalance = afterAliceUAtomBalance, afterBobUAtomBalance

// alice sends tokens to bob and charlie, at once
s.execBankMultiSend(s.chainA, 0, alice.String(), []string{bob.String(), charlie.String()}, tokenAmount.String(), standardFees.String(), false)
s.execBankMultiSend(s.chainA, valIdx, alice.String(), []string{bob.String(), charlie.String()}, tokenAmount.String(), standardFees.String(), false)

s.Require().Eventually(
func() bool {
Expand Down
3 changes: 0 additions & 3 deletions tests/e2e/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ func queryGaiaTx(endpoint, txHash string) error {
}

txResp := result["tx_response"].(map[string]interface{})

// fmt.Printf("%#+v\n", txResp)

if v := txResp["code"]; v.(float64) != 0 {
return fmt.Errorf("tx %s failed with status code %v", txHash, v)
}
Expand Down

0 comments on commit 13bdcee

Please sign in to comment.