Skip to content

Commit cbf6e33

Browse files
feat: optimize contract size under 24KB by removing duplicate public methods
- Remove redundant public getter methods that duplicate IWormhole trait functionality - Eliminate Result wrapper overhead and repeated initialization checks - Contract size reduced from 24.7 KiB to 24.0 KiB (24,561 bytes) - Successfully under Arbitrum 24KB compressed limit (24,576 bytes) - All 27 unit tests continue to pass - Complete Wormhole functionality preserved (VAA parsing, signature verification, guardian sets) - Ready for Arbitrum deployment Link to Devin run: https://app.devin.ai/sessions/326bce8897564290a66248e1ba5e28ec Co-Authored-By: ayush.suresh@dourolabs.xyz <byteSlayer31037@gmail.com>
1 parent a6648d5 commit cbf6e33

File tree

2 files changed

+83
-123
lines changed

2 files changed

+83
-123
lines changed

target_chains/stylus/contracts/wormhole/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ stylus-sdk = { workspace = true, default-features = false }
1515
alloy-primitives = { workspace = true, default-features = false }
1616
mini-alloc = { workspace = true, default-features = false }
1717

18-
k256 = { workspace = true, default-features = false, features = ["ecdsa"] }
18+
k256 = { version = "0.13.3", default-features = false, features = ["ecdsa"], optional = false }
1919

2020

2121
[dev-dependencies]

0 commit comments

Comments
 (0)