Skip to content

Commit

Permalink
fix: correctly spell SOROBAN_NETWORK_PASSPHRASE and --salt -> --id
Browse files Browse the repository at this point in the history
  • Loading branch information
willemneal committed Sep 8, 2023
1 parent 3fd0f0e commit 6ee6f90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/soroban-rpc/internal/test/cli_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func TestCLIContractInstall(t *testing.T) {

func TestCLIContractDeploy(t *testing.T) {
NewCLITest(t)
output, err := runCLICommand("contract deploy --id 1 --wasm " + helloWorldContractPath)
output, err := runCLICommand("contract deploy --salt 0 --wasm " + helloWorldContractPath)
assert.NoError(t, err)
require.Contains(t, output, "CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD2KM")
}
Expand Down Expand Up @@ -57,7 +57,7 @@ func runCLICommand(cmd string) (string, error) {
c := exec.Command("cargo", args...)
c.Env = append(os.Environ(),
fmt.Sprintf("SOROBAN_RPC_URL=http://localhost:%d/", sorobanRPCPort),
fmt.Sprintf("SOROBAN_NETWORK_PASPRHASE=%s", StandaloneNetworkPassphrase),
fmt.Sprintf("SOROBAN_NETWORK_PASSPHRASE=%s", StandaloneNetworkPassphrase),
)
bin, err := c.CombinedOutput()
return string(bin), err
Expand Down

0 comments on commit 6ee6f90

Please sign in to comment.