Refactor and timestamp test

This commit is contained in:
Gav
2018-01-19 08:49:38 +01:00
parent f179adbc4e
commit ba0d71a551
9 changed files with 110 additions and 72 deletions
@@ -253,7 +253,7 @@ mod tests {
let tx = Transaction {
signed: one.clone(),
nonce: 69,
function: Function::StakingTransferStake,
function: Function::StakingTransferInactive,
input_data: Vec::new().join(&two).join(&69u64),
};
let serialised = tx.to_vec();
@@ -274,7 +274,7 @@ mod tests {
let tx = Transaction {
signed: one.clone(),
nonce: 69,
function: Function::StakingTransferStake,
function: Function::StakingTransferInactive,
input_data: Vec::new().join(&two).join(&69u64),
};
let data = [
@@ -344,7 +344,7 @@ mod tests {
transaction: Transaction {
signed: one.clone(),
nonce: 69,
function: Function::StakingTransferStake,
function: Function::StakingTransferInactive,
input_data: Vec::new().join(&two).join(&69u64),
},
signature: [1u8; 64],
@@ -408,7 +408,7 @@ mod tests {
transaction: Transaction {
signed: one.clone(),
nonce: 69,
function: Function::StakingTransferStake,
function: Function::StakingTransferInactive,
input_data: Vec::new().join(&two).join(&69u64),
},
signature: [1u8; 64],