From 933874816819f7de392d67524fb9769ad5d83eb6 Mon Sep 17 00:00:00 2001 From: Willem Wyndham Date: Tue, 12 Sep 2023 13:55:51 -0400 Subject: [PATCH] fix: try not using invoke --- cmd/soroban-rpc/internal/test/cli_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/soroban-rpc/internal/test/cli_test.go b/cmd/soroban-rpc/internal/test/cli_test.go index af9e78cc9d..83739cb7f8 100644 --- a/cmd/soroban-rpc/internal/test/cli_test.go +++ b/cmd/soroban-rpc/internal/test/cli_test.go @@ -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)) @@ -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)