Skip to content
This repository has been archived by the owner on Oct 30, 2023. It is now read-only.

Commit

Permalink
update download_wasm to remove old wasms
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberHoward committed Jun 14, 2023
1 parent cbbaf4d commit da94030
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/abstract-interface/examples/download_wasms.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ const VERSION: &str = env!("CARGO_PKG_VERSION");

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
// clear all the old artifacts
let file_path = format!("../../artifacts");
let path = Path::new(&file_path);
if path.exists() {
std::fs::remove_dir_all(path)?;
std::fs::create_dir(path)?;
}
let client = Client::new();
let url = format!("{}v{}", URL, VERSION);
let release: Release = client
Expand Down

0 comments on commit da94030

Please sign in to comment.