//Withdraw unbounded ONG according to deposit ONT in this governance contract
Withdraw unbounded ONG according to deposit ONT in this governance contract
Withdraw unbounded ONG according to deposit ONT in this governance contract
pub fn withdraw_ong(addr: &Address) -> bool {
        let mut sink = Sink::new(64);
        sink.write(WithdrawOngParam { addr });
        let mut sink_param = Sink::new(64);
        sink_param.write(VERSION);
        sink_param.write("withdrawOng");
        sink_param.write(sink.bytes());
        let output = call_contract(&GOV_CONTRACT_ADDRESS, sink_param.bytes());
        let mut source = Source::new(output.as_slice());
        source.read_bool().unwrap_or_default()
    }
pub fn withdraw_ong ( addr : & Address ) -> bool { let mut sink = Sink :: new ( 64 ) ; sink . write ( WithdrawOngParam { addr } ) ; let mut sink_param = Sink :: new ( 64 ) ; sink_param . write ( VERSION ) ; sink_param . write ( " " ) ; sink_param . write ( sink . bytes ( ) ) ; let output = call_contract ( & GOV_CONTRACT_ADDRESS , sink_param . bytes ( ) ) ; let mut source = Source :: new ( output . as_slice ( ) ) ; source . read_bool ( ) . unwrap_or_default ( ) }
Withdraw unbounded ONG according to deposit ONT in this governance contract
Withdraw unbounded ONG according to deposit ONT in this governance contract
addr
&Address