We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77b997c commit 66cf7c6Copy full SHA for 66cf7c6
target_chains/stylus/contracts/wormhole/src/lib.rs
@@ -1,16 +1,8 @@
1
-#![cfg_attr(not(feature = "std"), no_std, no_main)]
2
extern crate alloc;
3
4
-#[cfg(not(feature = "std"))]
5
#[global_allocator]
6
static ALLOC: mini_alloc::MiniAlloc = mini_alloc::MiniAlloc::INIT;
7
8
9
-#[panic_handler]
10
-fn panic(_info: &core::panic::PanicInfo) -> ! {
11
- loop {}
12
-}
13
-
14
15
use alloc::{vec, vec::Vec};
16
use stylus_sdk::{
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;");
+}
0 commit comments