Skip to content

Commit 2a48418

Browse files
committed
target wasm32v1-none
1 parent 6673522 commit 2a48418

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ stellar contract build
9999

100100
If you get an error like `can't find crate for 'core'`, it means you didn't install the wasm32 target
101101
during the [Soroban setup](https://developers.stellar.org/docs/build/smart-contracts/getting-started/setup).
102-
You can fix it by running `rustup target add wasm32-unknown-unknown`.
102+
You can fix it by running `rustup target add wasm32v1-none`.
103103

104104
### Optimization
105105

@@ -113,7 +113,7 @@ cargo install --locked stellar-cli --features opt
113113
Then build an optimized `.wasm` file:
114114

115115
```sh
116-
stellar contract optimize --wasm target/wasm32-unknown-unknown/release/sink_carbon.wasm
116+
stellar contract optimize --wasm target/wasm32v1-none/release/sink_carbon.wasm
117117
```
118118

119119
This will optimize and output a new `sink_carbon.optimized.wasm` file in the same location as the input `.wasm`.

contracts/komet-sink-carbon/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ pub enum DataKey {
1919

2020
mod sink_contract {
2121
soroban_sdk::contractimport!(
22-
file = "../../target/wasm32-unknown-unknown/release/sink_carbon.wasm"
22+
file = "../../target/wasm32v1-none/release/sink_carbon.wasm"
2323
);
2424
}
2525

contracts/sink-carbon/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ test: build
77

88
build:
99
stellar contract build
10-
@ls -l ../../target/wasm32-unknown-unknown/release/*.wasm
10+
@ls -l ../../target/wasm32v1-none/release/*.wasm
1111

1212
fmt:
1313
cargo fmt --all

deploy-retroshades.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ echo "Script running in directory: $(pwd)"
99
source ".env"
1010

1111
echo "Building Mercury-enabled contract..."
12-
cargo build --release --target wasm32-unknown-unknown --features mercury || exit 1
12+
cargo build --release --target wasm32v1-none --features mercury || exit 1
1313
printf "\nYou'll see a warning about unreachable code in the build output. This can probably be ignored.\n"
1414

15-
wasm_bin="target/wasm32-unknown-unknown/release/sink_carbon.wasm"
15+
wasm_bin="target/wasm32v1-none/release/sink_carbon.wasm"
1616

1717
mercury_args=(
1818
--key $MERCURY_KEY

rust-toolchain.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[toolchain]
2-
channel = "1.87"
3-
targets = ["wasm32-unknown-unknown"]
2+
channel = "stable"
3+
targets = ["wasm32v1-none"]
44
components = ["rustc", "cargo", "rustfmt", "clippy", "rust-src"]

0 commit comments

Comments
 (0)