budget as separate contract and system call contract (#1189)
* budget and system contracts and verification * contract check_id methods * system call contract * verify contract execution rules * move system into its own file * allocate before transfer for budget * store error in budget context * budget contract and tests without bank * moved budget of of bank
This commit is contained in:
committed by
GitHub
parent
072b244575
commit
6ec0e42220
@@ -226,7 +226,7 @@ mod tests {
|
||||
let bank = Bank::new(&alice);
|
||||
|
||||
let last_id = bank.last_id();
|
||||
let tx = Transaction::new(&alice.keypair(), bob_pubkey, 20, last_id);
|
||||
let tx = Transaction::system_move(&alice.keypair(), bob_pubkey, 20, last_id, 0);
|
||||
bank.process_transaction(&tx).expect("process transaction");
|
||||
|
||||
let request_processor = JsonRpcRequestProcessor::new(Arc::new(bank));
|
||||
|
||||
Reference in New Issue
Block a user