Skip to content

Commit

Permalink
use .contract file extension for stockpile dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky committed Dec 16, 2024
1 parent 36047d1 commit 38d7d11
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions examples/dao/data/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
WonderlandDAO
*.schema
*.contract
*.issuer
*.deeds
*.articles
2 changes: 1 addition & 1 deletion examples/dao/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ fn main() {
// Creating DAO with three participants
let issuer = Schema::new(codex, api, [libs::success()], types.type_system());
issuer
.save("examples/dao/data/SimpleDAO.schema")
.save("examples/dao/data/SimpleDAO.issuer")
.expect("unable to save issuer to a file");

let seed = &[0xCA; 30][..];
Expand Down
1 change: 1 addition & 0 deletions src/stock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,7 @@ pub mod fs {
pub fn new(name: &str, path: impl AsRef<Path>) -> Self {
let mut path = path.as_ref().to_path_buf();
path.push(name);
path.set_extension("contract");
fs::create_dir_all(&path).expect("Unable to create directory to store Stock");

let stash = FileAora::new(&path, "stash");
Expand Down

0 comments on commit 38d7d11

Please sign in to comment.