Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
mvines authored and solana-grimes committed Sep 21, 2018
1 parent beeb096 commit 2614189
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/system_program.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ impl SystemProgram {
account.tokens
}
pub fn process_transaction(tx: &Transaction, accounts: &mut [Account]) {
if let Ok(syscall) = deserialize(&tx.userdata){
if let Ok(syscall) = deserialize(&tx.userdata) {
trace!("process_transaction: {:?}", syscall);
match syscall {
SystemProgram::CreateAccount {
Expand Down
9 changes: 1 addition & 8 deletions src/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,14 +143,7 @@ impl Transaction {
pub fn budget_new_vote(from_keypair: &Keypair, vote: Vote, last_id: Hash, fee: i64) -> Self {
let instruction = Instruction::NewVote(vote);
let userdata = serialize(&instruction).expect("serialize instruction");
Self::new_with_userdata(
from_keypair,
&[],
BudgetState::id(),
userdata,
last_id,
fee,
)
Self::new_with_userdata(from_keypair, &[], BudgetState::id(), userdata, last_id, fee)
}

/// Create and sign a postdated Transaction. Used for unit-testing.
Expand Down

0 comments on commit 2614189

Please sign in to comment.