From 661e91e2c7f409212f833558f1cb1229854c6081 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Silva?= Date: Fri, 25 Jan 2019 07:49:20 +0000 Subject: [PATCH] core: fix transaction-pool tests (#1557) --- substrate/core/transaction-pool/graph/src/pool.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/substrate/core/transaction-pool/graph/src/pool.rs b/substrate/core/transaction-pool/graph/src/pool.rs index 26dfaa974d..fca9d6a5d6 100644 --- a/substrate/core/transaction-pool/graph/src/pool.rs +++ b/substrate/core/transaction-pool/graph/src/pool.rs @@ -570,8 +570,8 @@ mod tests { // given let pool = pool(); let hash1 = pool.submit_one(&BlockId::Number(0), uxt(Transfer { - from: 1.into(), - to: 2.into(), + from: H256::from_low_u64_be(1), + to: H256::from_low_u64_be(2), amount: 5, nonce: 0, })).unwrap(); @@ -607,7 +607,7 @@ mod tests { // then let mut stream = watcher.into_stream().wait(); assert_eq!(stream.next(), Some(Ok(::watcher::Status::Ready))); - assert_eq!(stream.next(), Some(Ok(::watcher::Status::Finalised(2.into())))); + assert_eq!(stream.next(), Some(Ok(::watcher::Status::Finalised(H256::from_low_u64_be(2))))); assert_eq!(stream.next(), None); } @@ -616,8 +616,8 @@ mod tests { // given let pool = pool(); let watcher = pool.submit_and_watch(&BlockId::Number(0), uxt(Transfer { - from: 1.into(), - to: 2.into(), + from: H256::from_low_u64_be(1), + to: H256::from_low_u64_be(2), amount: 5, nonce: 0, })).unwrap();