Skip to content

Commit 8d01c7e

Browse files
committed
重新导出 pdxabi 名称空间,关闭 Contract.load 方法
1 parent e72e7dc commit 8d01c7e

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

libs/ethabi/src/contract.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,12 @@ impl<'a> Visitor<'a> for ContractVisitor {
7070
}
7171

7272
impl Contract {
73+
/*
7374
/// Loads contract from json.
7475
pub fn load<T: io::Read>(reader: T) -> errors::Result<Self> {
7576
let c = serde_json::from_reader(reader).map_err(From::from);
7677
return c;
77-
}
78+
}*/
7879

7980
/// Creates constructor call builder.
8081
pub fn constructor(&self) -> Option<&Constructor> {

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ cfg_if! {
4545
mod native;
4646
mod utils;
4747

48-
pub extern crate ethabi;
48+
pub extern crate ethabi as pdxabi;
4949

5050
//pub extern crate rustc_hex;
5151
pub mod pdx;

0 commit comments

Comments
 (0)