Closed clearloop closed 1 month ago
Even we're using WASM as IR, we can not compile all of them WASM bytecode into EVM, vector like types are really hard to be compiled, however, we can compile them as empty functions to mark them in the compiler
#[cfg(target = "wasm")] struct Address; #[cfg(not(target = "wasm"))] struct Address = [u8; 20] fn method(address: Address) { // fn: wasm.load_address() // push20 ... let address = address.load(); }
No response
Describe the feature
Even we're using WASM as IR, we can not compile all of them WASM bytecode into EVM, vector like types are really hard to be compiled, however, we can compile them as empty functions to mark them in the compiler
Solution
No response