pub fn put_fiat_method(&mut self, id: i128
        , fiat_method: String, flagcdn: String) {
        self.users.iter().find(|x| x.user_id == env::signer_account_id().to_string() && x.admin == true).expect("User not admin");
        for i in 0..self.fiat_method.len() {
            if self.fiat_method.get(i).unwrap().id == id {
                self.fiat_method[i].fiat_method = fiat_method.to_string();
                self.fiat_method[i].flagcdn = flagcdn.to_string();
            }
        }
        env::log(b"Fiat Method Update");
    }
/// Put the Fiat Method object into the contract
/// Params: id: i128, fiat_method: String, flagcdn: String
Put the Fiat Method object into the contract
Params: id: i128, fiat_method: String, flagcdn: String
Put the Fiat Method object into the contract Params : id : i128 fiat_method : String flagcdn : String
pub fn put_fiat_method(&mut self, id: i128
        , fiat_method: String, flagcdn: String) {
        self.users.iter().find(|x| x.user_id == env::signer_account_id().to_string() && x.admin == true).expect("User not admin");
        for i in 0..self.fiat_method.len() {
            if self.fiat_method.get(i).unwrap().id == id {
                self.fiat_method[i].fiat_method = fiat_method.to_string();
                self.fiat_method[i].flagcdn = flagcdn.to_string();
            }
        }
        env::log(b"Fiat Method Update");
    }
pub fn put_fiat_method ( & mut self , id : i128 , fiat_method : String , flagcdn : String ) { self . users . iter ( ) . find ( | x | x . user_id == env :: signer_account_id ( ) . to_string ( ) && x . admin == true ) . expect ( " " ) ; for i in 0 .. self . fiat_method . len ( ) { if self . fiat_method . get ( i ) . unwrap ( ) . id == id { self . fiat_method [ i ] . fiat_method = fiat_method . to_string ( ) ; self . fiat_method [ i ] . flagcdn = flagcdn . to_string ( ) ; } } env :: log ( b" " ) ; }
Put the Fiat Method object into the contract
Params: id: i128, fiat_method: String, flagcdn: String
Put the Fiat Method object into the contract Params : id : i128 fiat_method : String flagcdn : String
&mut self
id
i128
fiat_method
String
flagcdn
String