Skip to content

Commit

Permalink
fix: try not using invoke
Browse files Browse the repository at this point in the history
  • Loading branch information
willemneal committed Sep 12, 2023
1 parent 92b85c0 commit 9338748
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/soroban-rpc/internal/test/cli_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func TestCLIContractDeployAndInvoke(t *testing.T) {
func TestCLISimulateTransactionBumpAndRestoreFootprint(t *testing.T) {
test := NewCLITest(t)
contractID := deploy(t, helloWorldContractPath, 0)
count := invoke(t, contractID, 0, "inc")
count := runSuccessfulCLICmd(t, fmt.Sprintf("contract invoke --id %s -- inc", contractID))
require.Equal(t, "1", count)
waitForKey(t, test, testContractID(t, 0), symToScVal(xdr.ScSymbol("COUNTER")))
count = runSuccessfulCLICmd(t, fmt.Sprintf("contract invoke --id %s -- inc", contractID))
Expand Down Expand Up @@ -156,9 +156,9 @@ func deploy(t *testing.T, wasmPath string, id uint32) string {
// return runSuccessfulCLICmd(t, fmt.Sprintf("contract bump --id=%s, --key-xdr=%s", contractID, keyBase64))
// }

func invoke(t *testing.T, contractID string, testAccountID uint32, args string) string {
return runSuccessfulCLICmd(t, fmt.Sprintf("contract invoke --hd-path %d --id %s -- %s", testAccountID, contractID, args))
}
// func invoke(t *testing.T, contractID string, testAccountID uint32, args string) string {
// return runSuccessfulCLICmd(t, fmt.Sprintf("contract invoke --hd-path %d --id %s -- %s", testAccountID, contractID, args))
// }

func runSuccessfulCLICmd(t *testing.T, cmd string) string {
res := runCLICommand(t, cmd)
Expand Down

0 comments on commit 9338748

Please sign in to comment.