Remove/address some TODOs (#6923)
This commit is contained in:
@ -328,7 +328,6 @@ pub fn process_instruction(
|
||||
let keyed_accounts = &mut keyed_accounts.iter_mut();
|
||||
let me = &mut next_keyed_account(keyed_accounts)?;
|
||||
|
||||
// TODO: data-driven unpack and dispatch of KeyedAccounts
|
||||
match limited_deserialize(data)? {
|
||||
StakeInstruction::Initialize(authorized, lockup) => me.initialize(
|
||||
&authorized,
|
||||
|
@ -176,7 +176,6 @@ pub fn process_instruction(
|
||||
let (me, rest) = &mut keyed_accounts.split_at_mut(1);
|
||||
let me = &mut me[0];
|
||||
|
||||
// TODO: data-driven unpack and dispatch of KeyedAccounts
|
||||
match limited_deserialize(data)? {
|
||||
VoteInstruction::InitializeAccount(vote_init) => {
|
||||
if rest.is_empty() {
|
||||
|
Reference in New Issue
Block a user