Update Transfer to v0.5.0

This commit is contained in:
Paul Hauner 2019-03-15 16:05:53 +11:00
parent db26b8fde7
commit a1ee1a4523
No known key found for this signature in database
GPG Key ID: D362883A9218FCC6
2 changed files with 5 additions and 5 deletions

View File

@ -10,12 +10,12 @@ pub struct TestingTransferBuilder {
impl TestingTransferBuilder {
/// Instantiates a new builder.
pub fn new(from: u64, to: u64, amount: u64, slot: Slot) -> Self {
pub fn new(sender: u64, recipient: u64, amount: u64, slot: Slot) -> Self {
let keypair = Keypair::random();
let transfer = Transfer {
from,
to,
sender,
recipient,
amount,
fee: 0,
slot,

View File

@ -23,8 +23,8 @@ use test_random_derive::TestRandom;
SignedRoot,
)]
pub struct Transfer {
pub from: u64,
pub to: u64,
pub sender: u64,
pub recipient: u64,
pub amount: u64,
pub fee: u64,
pub slot: Slot,