This repository was archived by the owner on Oct 19, 2024. It is now read-only.
File tree 3 files changed +24
-4
lines changed
ethers-contract/ethers-contract-abigen/src
3 files changed +24
-4
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## ethers-core
4
4
5
- - Change types mapping for solidity ` bytes ` to rust ` ethers::core::Bytes ` and solidity ` uint8[] ` to rust ` Vec<u8> ` .
5
+ ### Unreleased
6
+
7
+ - Change types mapping for solidity ` bytes ` to rust ` ethers::core::Bytes ` and
8
+ solidity ` uint8[] ` to rust ` Vec<u8> ` .
6
9
[ 613] ( https://github.com/gakonst/ethers-rs/pull/613 )
7
10
- Fix ` format_units ` to return a ` String ` of representing a decimal point float
8
11
such that the decimal places don't get truncated.
9
12
[ 597] ( https://github.com/gakonst/ethers-rs/pull/597 )
10
- - Implement hex display format for ` ethers::core::Bytes ` [ #624 ] ( https://github.com/gakonst/ethers-rs/pull/624 ) .
13
+ - Implement hex display format for ` ethers::core::Bytes `
14
+ [ #624 ] ( https://github.com/gakonst/ethers-rs/pull/624 ) .
11
15
12
16
## ethers-solc
13
- - Return cached artifacts from project ` compile ` when the cache only contains some files
14
17
15
18
### Unreleased
16
19
20
+ - Return cached artifacts from project ` compile ` when the cache only contains
21
+ some files
22
+
17
23
### 0.6.0
18
24
19
25
- move ` AbiEncode ` ` AbiDecode ` trait to ethers-core and implement for core types
82
88
83
89
## ethers-contract
84
90
91
+ ### Unreleased
92
+
93
+ - fix Etherscan conditional HTTP support
94
+ [ #632 ] ( https://github.com/gakonst/ethers-rs/pull/632 )
95
+ - use ` CARGO_MANIFEST_DIR ` as root for relative paths in abigen
96
+ [ #631 ] ( https://github.com/gakonst/ethers-rs/pull/631 )
97
+
85
98
### 0.6.0
86
99
87
100
- Provide a way to opt out of networking support in abigen proc macro with
Original file line number Diff line number Diff line change @@ -279,4 +279,11 @@ mod tests {
279
279
let hardhat_parsed = Source :: parse ( & hardhat_src) . unwrap ( ) ;
280
280
assert_eq ! ( hardhat_parsed, Source :: String ( hardhat_src) ) ;
281
281
}
282
+
283
+ #[ test]
284
+ #[ ignore]
285
+ fn get_etherscan_contract ( ) {
286
+ let source = Source :: etherscan ( "0x6b175474e89094c44da98b954eedeac495271d0f" ) . unwrap ( ) ;
287
+ let _dai = source. get ( ) . unwrap ( ) ;
288
+ }
282
289
}
Original file line number Diff line number Diff line change 74
74
/// Perform an HTTP GET request and return the contents of the response.
75
75
pub fn http_get ( _url : & str ) -> Result < String > {
76
76
cfg_if ! {
77
- if #[ cfg( any( not ( target_arch = "wasm32" ) , not( features = "reqwest" ) ) ) ] {
77
+ if #[ cfg( any( target_arch = "wasm32" , not( feature = "reqwest" ) ) ) ] {
78
78
Err ( anyhow!( "HTTP is unsupported" ) )
79
79
} else {
80
80
Ok ( reqwest:: blocking:: get( _url) ?. text( ) ?)
You can’t perform that action at this time.
0 commit comments