Skip to content

Commit b3b7b37

Browse files
fix: resolve CI configuration issues
1 parent 4e2f90b commit b3b7b37

6 files changed

Lines changed: 9 additions & 12 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Install Rust
2121
uses: dtolnay/rust-toolchain@stable
2222
with:
23-
targets: wasm32-unknown-unknown
23+
targets: wasm32v1-none
2424
components: rustfmt,clippy
2525

2626
- name: Format
@@ -33,7 +33,7 @@ jobs:
3333
run: cargo test --workspace
3434

3535
- name: Build WASM
36-
run: cargo build --manifest-path contracts/Cargo.toml --target wasm32-unknown-unknown --release
36+
run: cargo build --manifest-path contracts/Cargo.toml --target wasm32v1-none --release
3737

3838
frontend:
3939
name: Frontend
@@ -50,6 +50,7 @@ jobs:
5050
with:
5151
node-version: 22
5252
cache: npm
53+
cache-dependency-path: frontend/package-lock.json
5354

5455
- name: Install dependencies
5556
run: npm install
@@ -62,4 +63,3 @@ jobs:
6263

6364
- name: Build
6465
run: npm run build
65-

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ tests/ Cross-system integration test placeholders
3030

3131
```bash
3232
npm install
33-
rustup target add wasm32-unknown-unknown
33+
rustup target add wasm32v1-none
3434
npm run contracts:build
3535
npm run dev
3636
```

docs/deployment.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Deployment scripts are placeholders until contract logic, network configuration,
55
## Prerequisites
66

77
- Rust stable
8-
- `wasm32-unknown-unknown` target
8+
- `wasm32v1-none` target
99
- Stellar CLI
1010
- Node.js 22 or newer
1111
- A funded Stellar testnet account
@@ -19,7 +19,7 @@ npm run contracts:build
1919
Expected artifact:
2020

2121
```text
22-
target/wasm32-unknown-unknown/release/predictx_contracts.wasm
22+
target/wasm32v1-none/release/predictx_contracts.wasm
2323
```
2424

2525
## Testnet Deployment Placeholder
@@ -35,4 +35,3 @@ Windows:
3535
```
3636

3737
The scripts currently validate intent and describe the expected deployment steps. They do not deploy production business logic.
38-

rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[toolchain]
22
channel = "stable"
3-
targets = ["wasm32-unknown-unknown"]
3+
targets = ["wasm32v1-none"]
44
components = ["rustfmt", "clippy"]
55

scripts/deploy-contract.ps1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ param(
22
[string]$Network = "testnet"
33
)
44

5-
$ContractWasm = "target/wasm32-unknown-unknown/release/predictx_contracts.wasm"
5+
$ContractWasm = "target/wasm32v1-none/release/predictx_contracts.wasm"
66

77
Write-Host "PredictX deployment placeholder"
88
Write-Host "Network: $Network"
@@ -14,4 +14,3 @@ Write-Host " 1. Build optimized contract WASM"
1414
Write-Host " 2. Upload contract WASM to $Network"
1515
Write-Host " 3. Create contract instance"
1616
Write-Host " 4. Store contract ID in frontend environment"
17-

scripts/deploy-contract.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
set -euo pipefail
33

44
NETWORK="${1:-testnet}"
5-
CONTRACT_WASM="target/wasm32-unknown-unknown/release/predictx_contracts.wasm"
5+
CONTRACT_WASM="target/wasm32v1-none/release/predictx_contracts.wasm"
66

77
echo "PredictX deployment placeholder"
88
echo "Network: ${NETWORK}"
@@ -14,4 +14,3 @@ echo " 1. Build optimized contract WASM"
1414
echo " 2. Upload contract WASM to ${NETWORK}"
1515
echo " 3. Create contract instance"
1616
echo " 4. Store contract ID in frontend environment"
17-

0 commit comments

Comments
 (0)