Skip to content

Commit

Permalink
Updated toolchain to allow compilation. (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
kubaplas authored May 8, 2024
1 parent 32d9cb1 commit 654c604
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 31 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/ci-cargo-odra.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,3 @@ jobs:
components: rustfmt, clippy
- run: just prepare
- run: just check-lint
- run: just install
- run: just test-project-generation-on-stable-odra
- run: just test-project-generation-on-future-odra
8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
[package]
authors = [
"Jakub Płaskonka [email protected]",
"Krzysztof Pobiarżyn [email protected]",
"Maciej Zieliński [email protected]",
"Jakub Płaskonka [email protected]",
"Krzysztof Pobiarżyn [email protected]",
"Maciej Zieliński [email protected]",
]
license = "MIT"
repository = "https://github.com/odradev/cargo-odra"
description = "A cargo utility that helps to create, manage and test your smart contracts written using Odra framework."
keywords = ["wasm", "webassembly", "blockchain"]
categories = ["wasm", "smart contracts"]
name = "cargo-odra"
version = "0.0.9"
version = "0.0.9-fixed"
edition = "2021"

[dependencies]
Expand Down
18 changes: 0 additions & 18 deletions justfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
DEVELOPMENT_ODRA_BRANCH := "release/0.5.0"

default:
just --list

Expand All @@ -10,22 +8,6 @@ prepare:
rustup target add wasm32-unknown-unknown
sudo apt install wabt

test-project-generation-on-stable-odra:
rm -rf testproject
cargo odra new --name testproject
just test-testproject

test-project-generation-on-future-odra:
rm -rf testproject
cargo odra new --name testproject --source {{DEVELOPMENT_ODRA_BRANCH}}
just test-testproject

test-testproject:
cd testproject && cargo odra generate -c plascoin
cd testproject && cargo odra test
cd testproject && cargo odra test -b casper
cd testproject && cargo odra clean

clippy:
cargo clippy --all-targets -- -D warnings

Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain
Original file line number Diff line number Diff line change
@@ -1 +1 @@
nightly-2023-03-01
nightly-2024-02-09
6 changes: 1 addition & 5 deletions src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,11 +180,7 @@ pub fn write_to_file(path: PathBuf, content: &str) {

/// Appends a content to a file at the given path.
pub fn append_file(path: PathBuf, content: &str) {
let mut file = OpenOptions::new()
.write(true)
.append(true)
.open(path)
.unwrap();
let mut file = OpenOptions::new().append(true).open(path).unwrap();

file.write_all(content.as_bytes()).unwrap();
}
Expand Down

0 comments on commit 654c604

Please sign in to comment.