You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: tx_claim_rewards.rs
    path of file: ./repos/namada/wasm/wasm_source/src
    
    the code of the file until where you have to start completion: //! A tx for a user to claim PoS inflationary rewards due to bonds used as
//! voting power in consensus.

use namada_tx_prelude::*;

#[transaction(gas = 260000)] // TODO: needs to be benchmarked
fn apply_tx(ctx: &mut Ctx, tx_data: Tx) -> TxResult {
    let signe
    
fn apply_tx(ctx: &mut Ctx, tx_data: Tx) -> TxResult {
    let signed = tx_data;
    let data = signed.data().ok_or_err_msg("Missing data")?;
    let withdraw = transaction::pos::Withdraw::try_from_slice(&data[..])
        .wrap_err("failed to decode Withdraw")?;

    ctx.claim_reward_tokens(withdraw.source.as_ref(), &withdraw.validator)?;
    Ok(())
}