Skip to content

Commit

Permalink
Revert "chore: ink v5 compatibility (#217)"
Browse files Browse the repository at this point in the history
This reverts commit 340129c.
  • Loading branch information
ipapandinas authored Mar 25, 2024
1 parent 7244d30 commit bfb5f60
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion base-image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y && \
rustup component add rust-src && \
rustup target add wasm32-unknown-unknown && \
cargo install cargo-dylint dylint-link && \
cargo install cargo-contract --version 4.0.2 && \
cargo install cargo-contract --version 4.0.0-rc.2 && \
rustc --version"

# Install Yarn 1.x
Expand Down
2 changes: 1 addition & 1 deletion src/lib/nodeInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const swankyNodeVersions = new Map<string, nodeInfo>([
{
version: "1.6.0",
polkadotPalletVersions: "polkadot-v0.9.39",
supportedInk: "v5.0.0",
supportedInk: "v4.3.0",
downloadUrl: {
darwin: {
arm64:
Expand Down
4 changes: 2 additions & 2 deletions src/templates/contracts/blank/contract/Cargo.toml.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ authors = ["{{author_name}}"]
edition = "2021"

[dependencies]
ink = { version = "5", default-features = false }
ink = { version = "4.2.1", default-features = false }

scale = { package = "parity-scale-codec", version = "3", default-features = false, features = ["derive"] }
scale-info = { version = "2.11", default-features = false, features = ["derive"], optional = true }
scale-info = { version = "2.6", default-features = false, features = ["derive"], optional = true }

[lib]
name = "{{contract_name_snake}}"
Expand Down
6 changes: 3 additions & 3 deletions src/templates/contracts/flipper/contract/Cargo.toml.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ authors = ["{{author_name}}"]
edition = "2021"

[dependencies]
ink = { version = "5", default-features = false }
ink = { version = "4.2.1", default-features = false }

scale = { package = "parity-scale-codec", version = "3", default-features = false, features = ["derive"] }
scale-info = { version = "2.11", default-features = false, features = ["derive"], optional = true }
scale-info = { version = "2.6", default-features = false, features = ["derive"], optional = true }

[dev-dependencies]
ink_e2e = "5"
ink_e2e = "4.2.1"

[lib]
name = "{{contract_name_snake}}"
Expand Down
6 changes: 3 additions & 3 deletions src/templates/contracts/psp22/contract/Cargo.toml.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ authors = ["{{author_name}}"]
edition = "2021"

[dependencies]
ink = { version = "5", default-features = false}
ink = { version = "4.2.1", default-features = false}

scale = { package = "parity-scale-codec", version = "3", default-features = false, features = ["derive"] }
scale-info = { version = "2.11", default-features = false, features = ["derive"], optional = true }
scale-info = { version = "2.6", default-features = false, features = ["derive"], optional = true }

openbrush = { git = "https://github.com/Brushfam/openbrush-contracts", tag = "4.0.0", default-features = false, features = ["psp22"] }

[dev-dependencies]
ink_e2e = "5"
ink_e2e = "4.2.1"
test_helpers = { path = "../../tests/test_helpers", default-features = false }

[lib]
Expand Down

0 comments on commit bfb5f60

Please sign in to comment.