Przeglądaj źródła

src/contract: add Debug trait to DeployFunction and MoneyFunction to be able to change to string for python tx bindings

oars 1 rok temu
rodzic
commit
5e51bc9925

+ 1 - 0
src/contract/deployooor/src/lib.rs

@@ -22,6 +22,7 @@ use darkfi_sdk::error::ContractError;
 
 
 /// Functions available in the contract
 /// Functions available in the contract
 #[repr(u8)]
 #[repr(u8)]
+#[derive(Debug)]
 pub enum DeployFunction {
 pub enum DeployFunction {
     DeployV1 = 0x00,
     DeployV1 = 0x00,
     LockV1 = 0x01,
     LockV1 = 0x01,

+ 1 - 0
src/contract/money/src/lib.rs

@@ -25,6 +25,7 @@ use darkfi_sdk::error::ContractError;
 
 
 /// Functions available in the contract
 /// Functions available in the contract
 #[repr(u8)]
 #[repr(u8)]
+#[derive(Debug)]
 // ANCHOR: money-function
 // ANCHOR: money-function
 pub enum MoneyFunction {
 pub enum MoneyFunction {
     FeeV1 = 0x00,
     FeeV1 = 0x00,