1 2 3 4 5 6 7 8 9 10 11
extern crate owasm_std; use owasm_std::types::H256; static LOG_TOPIC: [u8; 32] = [ 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 254, ]; pub fn log(message: &str) { owasm_std::ext::log(&[LOG_TOPIC.into()], message.as_bytes()); }