Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Alfonso Acosta <[email protected]>
  • Loading branch information
willemneal and 2opremio authored Sep 13, 2023
1 parent 8d3cc22 commit 6f6d426
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/soroban-rpc/internal/test/cli_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func symToScVal(s xdr.ScSymbol) xdr.ScVal {
return res
}

func waitForKey(t *testing.T, test *Test, contractID [32]byte, scValKey xdr.ScVal) {
func waitForKeyToExpire(t *testing.T, test *Test, contractID [32]byte, scValKey xdr.ScVal) {
ch := jhttp.NewChannel(test.sorobanRPCURL(), nil)
client := jrpc2.NewClient(ch, nil)
// get the counter ledger entry expiration
Expand Down Expand Up @@ -184,11 +184,11 @@ func runCLICommand(t *testing.T, cmd string) *icmd.Result {
return icmd.RunCmd(cliCmd(t, cmd))
}

func testAccount(t *testing.T, id uint32) string {
func getAccountFromID(t *testing.T, id uint32) string {
return strings.Trim(runSuccessfulCLICmd(t, fmt.Sprintf("config identity address --hd-path %d", id)), "\n")
}

func testContractID(t *testing.T, id uint32) [32]byte {
func getTestContractIDFromAccountAndSalt(t *testing.T, id uint32) [32]byte {
return getContractID(t, testAccount(t, id), testSalt, StandaloneNetworkPassphrase)
}

Expand Down

0 comments on commit 6f6d426

Please sign in to comment.