Skip to content

Commit 999e177

Browse files
committed
fix: remove arch from remote submit-job cmd
1 parent 43ba7f7 commit 999e177

File tree

2 files changed

+8
-29
lines changed

2 files changed

+8
-29
lines changed

src/api/client.rs

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ pub async fn send_job_with_uploader_to_remote(
9393
connection: &RpcClient,
9494
program_id: &Pubkey,
9595
uploader: &Pubkey,
96-
arch: Option<String>,
9796
) -> anyhow::Result<()> {
9897
// Check that PDA exists before sending job
9998
let genesis_hash = get_genesis_hash(connection)?;
@@ -107,21 +106,14 @@ pub async fn send_job_with_uploader_to_remote(
107106
.build()?;
108107

109108
// Send the POST request
110-
let mut payload = json!({
111-
"program_id": program_id.to_string(),
112-
"signer": uploader.to_string(),
113-
"repository": "",
114-
"commit_hash": "",
115-
});
116-
117-
// Add arch parameter if provided
118-
if let Some(arch_value) = arch {
119-
payload["arch"] = json!(arch_value);
120-
}
121-
122109
let response = client
123110
.post(format!("{}/verify-with-signer", REMOTE_SERVER_URL))
124-
.json(&payload)
111+
.json(&json!({
112+
"program_id": program_id.to_string(),
113+
"signer": uploader.to_string(),
114+
"repository": "",
115+
"commit_hash": "",
116+
}))
125117
.send()
126118
.await?;
127119

src/main.rs

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -363,12 +363,7 @@ async fn main() -> anyhow::Result<()> {
363363
.long("uploader")
364364
.required(true)
365365
.takes_value(true)
366-
.help("This is the address that uploaded verified build information for the program-id"))
367-
.arg(Arg::with_name("arch")
368-
.long("arch")
369-
.takes_value(true)
370-
.possible_values(&["v0", "v1", "v2", "v3"])
371-
.help("Build for the given target architecture [default: v0]")))
366+
.help("This is the address that uploaded verified build information for the program-id")))
372367
)
373368
.get_matches();
374369

@@ -596,13 +591,11 @@ async fn main() -> anyhow::Result<()> {
596591
("submit-job", Some(sub_m)) => {
597592
let program_id = sub_m.value_of("program-id").unwrap();
598593
let uploader = sub_m.value_of("uploader").unwrap();
599-
let arch = sub_m.value_of("arch").map(|s| s.to_string());
600594

601595
send_job_with_uploader_to_remote(
602596
&connection,
603597
&Pubkey::try_from(program_id)?,
604598
&Pubkey::try_from(uploader)?,
605-
arch,
606599
)
607600
.await
608601
}
@@ -1440,13 +1433,7 @@ pub async fn verify_from_repo(
14401433
"\nPlease note that if the desired uploader is not the provided keypair, you will need to run `solana-verify remote submit-job --program-id {} --uploader <uploader-address>.\n",
14411434
&program_id,
14421435
);
1443-
send_job_with_uploader_to_remote(
1444-
connection,
1445-
&program_id,
1446-
&uploader,
1447-
arch.clone(),
1448-
)
1449-
.await?;
1436+
send_job_with_uploader_to_remote(connection, &program_id, &uploader).await?;
14501437
}
14511438

14521439
Ok(())

0 commit comments

Comments
 (0)