From e701ccc9490e6c7fcbd0a9d0c33d91a8affea2ee Mon Sep 17 00:00:00 2001 From: Greg Fitzgerald Date: Tue, 6 Mar 2018 10:59:47 -0700 Subject: [PATCH] Rename Request::Transfer to Request::Transaction --- src/accountant_skel.rs | 4 ++-- src/accountant_stub.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/accountant_skel.rs b/src/accountant_skel.rs index 004f627af..5a95337ea 100644 --- a/src/accountant_skel.rs +++ b/src/accountant_skel.rs @@ -11,7 +11,7 @@ pub struct AccountantSkel { #[derive(Serialize, Deserialize, Debug)] pub enum Request { - Transfer { + Transaction { from: PublicKey, to: PublicKey, val: i64, @@ -43,7 +43,7 @@ impl AccountantSkel { pub fn process_request(self: &mut Self, msg: Request) -> Option { match msg { - Request::Transfer { + Request::Transaction { from, to, val, diff --git a/src/accountant_stub.rs b/src/accountant_stub.rs index 8e62addd3..2336051bb 100644 --- a/src/accountant_stub.rs +++ b/src/accountant_stub.rs @@ -33,7 +33,7 @@ impl AccountantStub { last_id: Sha256Hash, sig: Signature, ) -> io::Result { - let req = Request::Transfer { + let req = Request::Transaction { from, to, val,