@@ -94,7 +94,7 @@ impl FromStr for Network {
94
94
#[ allow( unused_variables) ]
95
95
pub fn get_hyd_vault ( phrase : String , password : String , network : String ) -> PyResult < String > {
96
96
let mut vault =
97
- Vault :: create ( None , phrase, & password , & password) . expect ( "Vault could not be initialised" ) ;
97
+ Vault :: create ( None , phrase, "" , & password) . expect ( "Vault could not be initialised" ) ;
98
98
let network = network. parse :: < Network > ( ) . unwrap ( ) . network ;
99
99
let params = hydra:: Parameters :: new ( & * network, 0 ) ;
100
100
hydra:: Plugin :: init ( & mut vault, & password, & params) . expect ( "plugin could not be initialised" ) ;
@@ -108,7 +108,7 @@ pub fn get_hyd_vault(phrase: String, password: String, network: String) -> PyRes
108
108
#[ allow( unused_variables) ]
109
109
pub fn get_morpheus_vault ( phrase : String , password : String ) -> Result < String , PyErr > {
110
110
//let mut vault = Vault::create(None, phrase, &password, &password).expect("Vault could not be initialised");
111
- let vault = Vault :: create ( None , phrase, & password , & password) ;
111
+ let vault = Vault :: create ( None , phrase, "" , & password) ;
112
112
match vault {
113
113
Ok ( mut vault) => {
114
114
morpheus:: Plugin :: init ( & mut vault, & password) . unwrap ( ) ;
@@ -255,7 +255,8 @@ pub fn generate_transaction<'a>(
255
255
password : String ,
256
256
account : i32 ,
257
257
network : & ' a str ,
258
- vendor_field : Option < String >
258
+ vendor_field : Option < String > ,
259
+ manual_fee : Option < u64 > ,
259
260
) -> PyResult < String > {
260
261
let mut transactions = Vec :: new ( ) ;
261
262
let signer = deserialize_hydra ( data, password, account, network) . unwrap ( ) ;
@@ -264,7 +265,7 @@ pub fn generate_transaction<'a>(
264
265
let nonce = nonce + 1 ;
265
266
let optional = OptionalTransactionFields {
266
267
amount,
267
- manual_fee : None ,
268
+ manual_fee,
268
269
vendor_field,
269
270
} ;
270
271
let common_fields = CommonTransactionFields {
0 commit comments