cargo fmt
This commit is contained in:
@@ -41,7 +41,7 @@ impl SystemProgram {
|
|||||||
account.tokens
|
account.tokens
|
||||||
}
|
}
|
||||||
pub fn process_transaction(tx: &Transaction, accounts: &mut [Account]) {
|
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);
|
trace!("process_transaction: {:?}", syscall);
|
||||||
match syscall {
|
match syscall {
|
||||||
SystemProgram::CreateAccount {
|
SystemProgram::CreateAccount {
|
||||||
|
@@ -143,14 +143,7 @@ impl Transaction {
|
|||||||
pub fn budget_new_vote(from_keypair: &Keypair, vote: Vote, last_id: Hash, fee: i64) -> Self {
|
pub fn budget_new_vote(from_keypair: &Keypair, vote: Vote, last_id: Hash, fee: i64) -> Self {
|
||||||
let instruction = Instruction::NewVote(vote);
|
let instruction = Instruction::NewVote(vote);
|
||||||
let userdata = serialize(&instruction).expect("serialize instruction");
|
let userdata = serialize(&instruction).expect("serialize instruction");
|
||||||
Self::new_with_userdata(
|
Self::new_with_userdata(from_keypair, &[], BudgetState::id(), userdata, last_id, fee)
|
||||||
from_keypair,
|
|
||||||
&[],
|
|
||||||
BudgetState::id(),
|
|
||||||
userdata,
|
|
||||||
last_id,
|
|
||||||
fee,
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Create and sign a postdated Transaction. Used for unit-testing.
|
/// Create and sign a postdated Transaction. Used for unit-testing.
|
||||||
|
Reference in New Issue
Block a user