@@ -43,7 +43,7 @@ func deployContract(compiledContractFileName string, contractWorkingDirectory st
43
43
var envCmd * cmd.Cmd
44
44
45
45
if installedContractId != "" {
46
- envCmd = cmd .NewCmd ("soroban " ,
46
+ envCmd = cmd .NewCmd ("stellar " ,
47
47
"contract" ,
48
48
"deploy" ,
49
49
"--quiet" ,
@@ -52,7 +52,7 @@ func deployContract(compiledContractFileName string, contractWorkingDirectory st
52
52
"--source" , e2eConfig .TargetNetworkSecretKey ,
53
53
"--network-passphrase" , e2eConfig .TargetNetworkPassPhrase )
54
54
} else {
55
- envCmd = cmd .NewCmd ("soroban " ,
55
+ envCmd = cmd .NewCmd ("stellar " ,
56
56
"contract" ,
57
57
"deploy" ,
58
58
"--quiet" ,
@@ -65,18 +65,18 @@ func deployContract(compiledContractFileName string, contractWorkingDirectory st
65
65
status , stdOut , err := e2e .RunCommand (envCmd , e2eConfig )
66
66
67
67
if status != 0 || err != nil {
68
- return "" , fmt .Errorf ("soroban cli deployment of example contract %s had error %v, %v" , compiledContractFileName , status , err )
68
+ return "" , fmt .Errorf ("stellar cli deployment of example contract %s had error %v, %v" , compiledContractFileName , status , err )
69
69
}
70
70
71
71
if len (stdOut ) < 1 {
72
- return "" , fmt .Errorf ("soroban cli deployment of example contract %s returned no contract id" , compiledContractFileName )
72
+ return "" , fmt .Errorf ("stellar cli deployment of example contract %s returned no contract id" , compiledContractFileName )
73
73
}
74
74
75
75
return stdOut [0 ], nil
76
76
}
77
77
78
78
func deployContractUsingConfigParams (compiledContractFileName string , contractWorkingDirectory string , contractExamplesSubPath string , identityName string , networkConfigName string , e2eConfig * e2e.E2EConfig ) (string , error ) {
79
- envCmd := cmd .NewCmd ("soroban " ,
79
+ envCmd := cmd .NewCmd ("stellar " ,
80
80
"contract" ,
81
81
"deploy" ,
82
82
"--quiet" ,
@@ -87,19 +87,19 @@ func deployContractUsingConfigParams(compiledContractFileName string, contractWo
87
87
status , stdOut , err := e2e .RunCommand (envCmd , e2eConfig )
88
88
89
89
if status != 0 || err != nil {
90
- return "" , fmt .Errorf ("soroban cli deployment of example contract %s had error %v, %v" , compiledContractFileName , status , err )
90
+ return "" , fmt .Errorf ("stellar cli deployment of example contract %s had error %v, %v" , compiledContractFileName , status , err )
91
91
}
92
92
93
93
if len (stdOut ) < 1 {
94
- return "" , fmt .Errorf ("soroban cli deployment of example contract %s returned no contract id" , compiledContractFileName )
94
+ return "" , fmt .Errorf ("stellar cli deployment of example contract %s returned no contract id" , compiledContractFileName )
95
95
}
96
96
97
97
return stdOut [0 ], nil
98
98
}
99
99
100
100
// returns the installed contract id
101
101
func installContract (compiledContractFileName string , contractWorkingDirectory string , contractExamplesSubPath string , e2eConfig * e2e.E2EConfig ) (string , error ) {
102
- envCmd := cmd .NewCmd ("soroban " ,
102
+ envCmd := cmd .NewCmd ("stellar " ,
103
103
"contract" ,
104
104
"install" ,
105
105
"--quiet" ,
@@ -111,18 +111,18 @@ func installContract(compiledContractFileName string, contractWorkingDirectory s
111
111
status , stdOut , err := e2e .RunCommand (envCmd , e2eConfig )
112
112
113
113
if status != 0 || err != nil {
114
- return "" , fmt .Errorf ("soroban cli install of example contract %s had error %v, %v" , compiledContractFileName , status , err )
114
+ return "" , fmt .Errorf ("stellar cli install of example contract %s had error %v, %v" , compiledContractFileName , status , err )
115
115
}
116
116
117
117
if len (stdOut ) < 1 {
118
- return "" , fmt .Errorf ("soroban cli install of example contract %s returned no contract id" , compiledContractFileName )
118
+ return "" , fmt .Errorf ("stellar cli install of example contract %s returned no contract id" , compiledContractFileName )
119
119
}
120
120
121
121
return stdOut [0 ], nil
122
122
}
123
123
124
124
func createNetworkConfig (configName string , rpcUrl string , networkPassphrase string , e2eConfig * e2e.E2EConfig ) error {
125
- envCmd := cmd .NewCmd ("soroban " ,
125
+ envCmd := cmd .NewCmd ("stellar " ,
126
126
"network" ,
127
127
"add" ,
128
128
"--rpc-url" , rpcUrl ,
@@ -132,7 +132,7 @@ func createNetworkConfig(configName string, rpcUrl string, networkPassphrase str
132
132
status , _ , err := e2e .RunCommand (envCmd , e2eConfig )
133
133
134
134
if status != 0 || err != nil {
135
- return fmt .Errorf ("soroban cli create network config %s had error %v, %v" , configName , status , err )
135
+ return fmt .Errorf ("stellar cli create network config %s had error %v, %v" , configName , status , err )
136
136
}
137
137
138
138
return nil
@@ -148,7 +148,7 @@ func createIdentityConfig(identityName string, secretKey string, e2eConfig *e2e.
148
148
status , _ , err := e2e .RunCommand (envCmd , e2eConfig )
149
149
150
150
if status != 0 || err != nil {
151
- return fmt .Errorf ("soroban cli create identity config %s had error %v, %v" , identityName , status , err )
151
+ return fmt .Errorf ("stellar cli create identity config %s had error %v, %v" , identityName , status , err )
152
152
}
153
153
154
154
return nil
0 commit comments