Commit 5b74700
fix: resolve no_std deployment conflicts while maintaining 23.9 KiB contract size
- Use conditional compilation #[cfg(not(any(feature = "std", feature = "export-abi")))] for no_std and panic handler
- Allows stylus_sdk to use std during deployment phases while maintaining no_std for WASM builds
- Successfully deployed to Arbitrum Sepolia at 0x7c56d119a916da6593e1fd8c1d010161f20afd70
- Contract size remains at 23.9 KiB (24,497 bytes), under 24 KiB deployment limit
- Resolves duplicate panic handler and unresolved std module errors during deployment
Co-Authored-By: [email protected] <[email protected]>1 parent 2a58ad8 commit 5b74700
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
0 commit comments