Skip to content

Commit 66cf7c6

Browse files
committed
added main.rs back, but went over size limit again
1 parent 77b997c commit 66cf7c6

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

target_chains/stylus/contracts/wormhole/src/lib.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,8 @@
1-
#![cfg_attr(not(feature = "std"), no_std, no_main)]
21
extern crate alloc;
32

4-
#[cfg(not(feature = "std"))]
53
#[global_allocator]
64
static ALLOC: mini_alloc::MiniAlloc = mini_alloc::MiniAlloc::INIT;
75

8-
#[cfg(not(feature = "std"))]
9-
#[panic_handler]
10-
fn panic(_info: &core::panic::PanicInfo) -> ! {
11-
loop {}
12-
}
13-
146

157
use alloc::{vec, vec::Vec};
168
use stylus_sdk::{
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#![cfg_attr(not(feature = "export-abi"), no_main)]
2+
3+
#[cfg(feature = "export-abi")]
4+
fn main() {
5+
wormhole_contract::print_abi("MIT-OR-APACHE-2.0", "pragma solidity ^0.8.23;");
6+
}

0 commit comments

Comments
 (0)