Skip to content

Commit 1e8ee46

Browse files
fix!: rename iAppAddress and appContractAddress to app in cache files for consistency
1 parent 0eaaa9a commit 1e8ee46

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

cli/src/cmd/deploy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ export async function deploy({ chain }: { chain?: string }) {
146146
// Add deployment data to deployments.json
147147
await addDeploymentData({
148148
image: appDockerImage,
149-
appContractAddress: appContractAddress,
149+
app: appContractAddress,
150150
owner: userAddress,
151151
chainName,
152152
});

cli/src/cmd/run.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ export async function run({
219219
spinner.start('Matching orders...');
220220
const { dealid, txHash } = await iexec.order.matchOrders(matchOrderParams);
221221
const taskid = await iexec.deal.computeTaskId(dealid, 0);
222-
await addRunData({ iAppAddress, dealid, taskid, txHash, chainName });
222+
await addRunData({ app: iAppAddress, dealid, taskid, txHash, chainName });
223223
spinner.succeed(
224224
`Deal created successfully
225225
- deal: ${dealid} ${color.link(`${chainConfig.iexecExplorerUrl}/deal/${dealid}`)}

cli/src/utils/cacheExecutions.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,20 +34,20 @@ async function addDataToCache(
3434

3535
// Function to add run data to runs.json
3636
export async function addRunData({
37-
iAppAddress,
37+
app,
3838
dealid,
3939
taskid,
4040
txHash,
4141
chainName,
4242
}: {
43-
iAppAddress: string;
43+
app: string;
4444
dealid: string;
4545
taskid: string;
4646
txHash: string;
4747
chainName: string;
4848
}) {
4949
const runData = {
50-
iAppAddress,
50+
app,
5151
dealid,
5252
taskid,
5353
txHash,
@@ -58,18 +58,18 @@ export async function addRunData({
5858
// Function to add deployment data to deployments.json
5959
export async function addDeploymentData({
6060
image,
61-
appContractAddress,
61+
app,
6262
owner,
6363
chainName,
6464
}: {
6565
image: string;
66-
appContractAddress: string;
66+
app: string;
6767
owner: string;
6868
chainName: string;
6969
}) {
7070
const deploymentData = {
7171
image,
72-
appContractAddress,
72+
app,
7373
owner,
7474
};
7575
await addDataToCache('deployments.json', chainName, deploymentData);

0 commit comments

Comments
 (0)