Răsfoiți Sursa

added main.rs back, but went over size limit again

Ayush Suresh 5 luni în urmă
părinte
comite
66cf7c61da

+ 0 - 8
target_chains/stylus/contracts/wormhole/src/lib.rs

@@ -1,16 +1,8 @@
-#![cfg_attr(not(feature = "std"), no_std, no_main)]
 extern crate alloc;
 
-#[cfg(not(feature = "std"))]
 #[global_allocator]
 static ALLOC: mini_alloc::MiniAlloc = mini_alloc::MiniAlloc::INIT;
 
-#[cfg(not(feature = "std"))]
-#[panic_handler]
-fn panic(_info: &core::panic::PanicInfo) -> ! {
-    loop {}
-}
-
 
 use alloc::{vec, vec::Vec};
 use stylus_sdk::{

+ 6 - 0
target_chains/stylus/contracts/wormhole/src/main.rs

@@ -0,0 +1,6 @@
+#![cfg_attr(not(feature = "export-abi"), no_main)]
+
+#[cfg(feature = "export-abi")]
+fn main() {
+    wormhole_contract::print_abi("MIT-OR-APACHE-2.0", "pragma solidity ^0.8.23;");
+}