|
@@ -59,10 +59,10 @@ impl TryFrom<u8> for MoneyFunction {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/// Structures and object definitions
|
|
/// Structures and object definitions
|
|
|
-pub mod state;
|
|
|
|
|
|
|
+pub mod model;
|
|
|
|
|
|
|
|
#[cfg(not(feature = "no-entrypoint"))]
|
|
#[cfg(not(feature = "no-entrypoint"))]
|
|
|
-use state::{
|
|
|
|
|
|
|
+use model::{
|
|
|
MoneyStakeParams, MoneyStakeUpdate, MoneyTransferParams, MoneyTransferUpdate,
|
|
MoneyStakeParams, MoneyStakeUpdate, MoneyTransferParams, MoneyTransferUpdate,
|
|
|
MoneyUnstakeParams,
|
|
MoneyUnstakeParams,
|
|
|
};
|
|
};
|
|
@@ -426,8 +426,6 @@ fn process_instruction(cid: ContractId, ix: &[u8]) -> ContractResult {
|
|
|
return Err(ContractError::Custom(22))
|
|
return Err(ContractError::Custom(22))
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- msg!("XXXX: spend_hook = {:?}", input.spend_hook);
|
|
|
|
|
-
|
|
|
|
|
// Check the invoked contract if spend hook is set
|
|
// Check the invoked contract if spend hook is set
|
|
|
if !bool::from(input.spend_hook.is_zero()) {
|
|
if !bool::from(input.spend_hook.is_zero()) {
|
|
|
let next_call_idx = call_idx + 1;
|
|
let next_call_idx = call_idx + 1;
|