Skip to content

Commit c2db133

Browse files
committed
fix: write version before publish, to prevent version to low errors for publishing half-failures
1 parent 4a6f13c commit c2db133

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

deploy-tool/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -453,13 +453,13 @@ fn deploy(version: u32) -> Result<(), Box<dyn Error>> {
453453
let state_path = default_storage_path("webapp.state");
454454
merge_state(&webapp_metadata, &webapp_archive, &state_path)?;
455455

456-
fdev_publish(contract_wasm, webapp_parameters, state_path)?;
457-
458456
fs::write(
459457
default_storage_path("version"),
460458
(version_chosen + 1).to_string(),
461459
)?;
462460

461+
fdev_publish(contract_wasm, webapp_parameters, state_path)?;
462+
463463
Ok(())
464464
}
465465

0 commit comments

Comments
 (0)