Rename Request::Transfer to Request::Transaction

This commit is contained in:
Greg Fitzgerald 2018-03-06 10:59:47 -07:00
parent 6543497c17
commit e701ccc949
2 changed files with 3 additions and 3 deletions

View File

@ -11,7 +11,7 @@ pub struct AccountantSkel {
#[derive(Serialize, Deserialize, Debug)] #[derive(Serialize, Deserialize, Debug)]
pub enum Request { pub enum Request {
Transfer { Transaction {
from: PublicKey, from: PublicKey,
to: PublicKey, to: PublicKey,
val: i64, val: i64,
@ -43,7 +43,7 @@ impl AccountantSkel {
pub fn process_request(self: &mut Self, msg: Request) -> Option<Response> { pub fn process_request(self: &mut Self, msg: Request) -> Option<Response> {
match msg { match msg {
Request::Transfer { Request::Transaction {
from, from,
to, to,
val, val,

View File

@ -33,7 +33,7 @@ impl AccountantStub {
last_id: Sha256Hash, last_id: Sha256Hash,
sig: Signature, sig: Signature,
) -> io::Result<usize> { ) -> io::Result<usize> {
let req = Request::Transfer { let req = Request::Transaction {
from, from,
to, to,
val, val,