@@ -16,3 +16,7 @@ darkfi-serial = { path = "../../serial", features = ["derive", "crypto"] }
# so the wasm32-unknown-unknown target is enabled.
[target.'cfg(target_arch = "wasm32")'.dependencies]
getrandom = { version = "0.2.8", features = ["custom"] }
+
+[features]
+default = []
+no-entrypoint = []
@@ -48,6 +48,7 @@ impl From<u8> for MoneyFunction {
pub mod state;
use state::{MoneyTransferParams, MoneyTransferUpdate};
+#[cfg(not(feature = "no-entrypoint"))]
define_contract!(
init: init_contract,
exec: process_instruction,