dissolve util (#7460)
* ethereum-types refactor in progress * ethereum-types refactor in progress * ethereum-types refactor in progress * ethereum-types refactor in progress * ethereum-types refactor finished * removed obsolete util/src/lib.rs * removed commented out code
This commit is contained in:
parent
ff8a4eb8d4
commit
51bfb71732
|
@ -8,7 +8,7 @@ authors = ["Parity Technologies <admin@parity.io>"]
|
|||
|
||||
[dependencies]
|
||||
elastic-array = "0.9"
|
||||
ethcore-bigint = { version = "0.2.1", path = "../bigint" }
|
||||
ethereum-types = "0.1"
|
||||
lazy_static = "0.2"
|
||||
rustc-hex = "1.0"
|
||||
byteorder = "1.0"
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
use std::{cmp, mem, str};
|
||||
use byteorder::{ByteOrder, BigEndian};
|
||||
use bigint::prelude::{U128, U256, H64, H128, H160, H256, H512, H520, H2048};
|
||||
use bigint::{U128, U256, H64, H128, H160, H256, H512, H520, H2048};
|
||||
use traits::{Encodable, Decodable};
|
||||
use stream::RlpStream;
|
||||
use {UntrustedRlp, DecoderError};
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
//! * You don't want to decode whole rlp at once.
|
||||
|
||||
extern crate byteorder;
|
||||
extern crate ethcore_bigint as bigint;
|
||||
extern crate ethereum_types as bigint;
|
||||
extern crate elastic_array;
|
||||
extern crate rustc_hex;
|
||||
|
||||
|
|
|
@ -274,7 +274,7 @@ impl<'a, 'view> Iterator for RlpIterator<'a, 'view> {
|
|||
#[test]
|
||||
fn break_it() {
|
||||
use rustc_hex::FromHex;
|
||||
use bigint::prelude::U256;
|
||||
use bigint::U256;
|
||||
|
||||
let h: Vec<u8> = FromHex::from_hex("f84d0589010efbef67941f79b2a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421a0c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470").unwrap();
|
||||
let r: Rlp = Rlp::new(&h);
|
||||
|
|
|
@ -6,11 +6,11 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
extern crate ethcore_bigint as bigint;
|
||||
extern crate ethereum_types as bigint;
|
||||
extern crate rlp;
|
||||
|
||||
use std::{fmt, cmp};
|
||||
use bigint::prelude::U256;
|
||||
use bigint::{U256, H160};
|
||||
use rlp::{Encodable, Decodable, UntrustedRlp, RlpStream, DecoderError};
|
||||
|
||||
#[test]
|
||||
|
@ -164,8 +164,6 @@ fn encode_str() {
|
|||
|
||||
#[test]
|
||||
fn encode_address() {
|
||||
use bigint::hash::H160;
|
||||
|
||||
let tests = vec![
|
||||
ETestPair(H160::from("ef2d6d194084c2de36e0dabfce45d046b37d1106"),
|
||||
vec![0x94, 0xef, 0x2d, 0x6d, 0x19, 0x40, 0x84, 0xc2, 0xde,
|
||||
|
@ -308,8 +306,6 @@ fn decode_untrusted_str() {
|
|||
|
||||
#[test]
|
||||
fn decode_untrusted_address() {
|
||||
use bigint::hash::H160;
|
||||
|
||||
let tests = vec![
|
||||
DTestPair(H160::from("ef2d6d194084c2de36e0dabfce45d046b37d1106"),
|
||||
vec![0x94, 0xef, 0x2d, 0x6d, 0x19, 0x40, 0x84, 0xc2, 0xde,
|
||||
|
|
Loading…
Reference in New Issue