diff --git a/pallets/utxo/src/lib.rs b/pallets/utxo/src/lib.rs index c6e3325..f011638 100644 --- a/pallets/utxo/src/lib.rs +++ b/pallets/utxo/src/lib.rs @@ -565,36 +565,36 @@ pub mod pallet { } pub fn create( - caller: &T::AccountId, - code: &Vec, - utxo_hash: H256, - utxo_value: u128, - data: &Vec, + _caller: &T::AccountId, + _code: &Vec, + _utxo_hash: H256, + _utxo_value: u128, + _data: &Vec, ) -> Result<(), &'static str> { - let weight: Weight = 6000000000; - - T::ProgrammablePool::create(caller, weight, code, utxo_hash, utxo_value, data) + // let weight: Weight = 6000000000; + // T::ProgrammablePool::create(caller, weight, code, utxo_hash, utxo_value, data) + Ok(()) } pub fn call( - caller: &T::AccountId, - dest: &T::AccountId, - utxo_hash: H256, - utxo_value: u128, - fund_contract: bool, - data: &Vec, + _caller: &T::AccountId, + _dest: &T::AccountId, + _utxo_hash: H256, + _utxo_value: u128, + _fund_contract: bool, + _data: &Vec, ) -> Result<(), &'static str> { - let weight: Weight = 6000000000; - - T::ProgrammablePool::call( - caller, - dest, - weight, - utxo_hash, - utxo_value, - fund_contract, - data, - ) + // let weight: Weight = 6000000000; + // T::ProgrammablePool::call( + // caller, + // dest, + // weight, + // utxo_hash, + // utxo_value, + // fund_contract, + // data, + // ) + Ok(()) } pub fn validate_transaction(