Skip to content

Commit

Permalink
Bump version. (#231)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomusdrw committed Jul 12, 2019
1 parent be1f7c9 commit fa091ec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ use web3::futures::Future;

fn main() {
let (_eloop, transport) = web3::transports::Http::new("http://localhost:8545").unwrap();

let web3 = web3::Web3::new(transport);
let accounts = web3.eth().accounts().wait().unwrap();

Expand Down
5 changes: 4 additions & 1 deletion examples/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ use web3::types::{Address, U256};

fn main() {
env_logger::init();
let (_eloop, http) = web3::transports::Http::new("http://localhost:8545").unwrap();
let (eloop, http) = web3::transports::Http::new("http://localhost:8545").unwrap();
// run the event loop in the background
eloop.into_remote();

let web3 = web3::Web3::new(http);

let my_account: Address = "d028d24f16a8893bd078259d413372ac01580769".parse().unwrap();
Expand Down

0 comments on commit fa091ec

Please sign in to comment.