Use new_response for consistency
This commit is contained in:
parent
28cf896a64
commit
90fad36613
|
@ -264,10 +264,7 @@ impl JsonRpcRequestProcessor {
|
||||||
get_encoded_account(&bank, &pubkey, encoding.clone(), config.data_slice)?;
|
get_encoded_account(&bank, &pubkey, encoding.clone(), config.data_slice)?;
|
||||||
accounts.push(response_account)
|
accounts.push(response_account)
|
||||||
}
|
}
|
||||||
Ok(Response {
|
Ok(new_response(&bank, accounts))
|
||||||
context: RpcResponseContext { slot: bank.slot() },
|
|
||||||
value: accounts,
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn get_minimum_balance_for_rent_exemption(
|
pub fn get_minimum_balance_for_rent_exemption(
|
||||||
|
@ -779,10 +776,7 @@ impl JsonRpcRequestProcessor {
|
||||||
};
|
};
|
||||||
statuses.push(status);
|
statuses.push(status);
|
||||||
}
|
}
|
||||||
Ok(Response {
|
Ok(new_response(&bank, statuses))
|
||||||
context: RpcResponseContext { slot: bank.slot() },
|
|
||||||
value: statuses,
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_transaction_status(
|
fn get_transaction_status(
|
||||||
|
|
Loading…
Reference in New Issue