6 releases (breaking)

0.6.0 Jan 27, 2021
0.5.0 Jan 5, 2021
0.4.0 Mar 16, 2020
0.3.0 Oct 1, 2019
0.1.0 Aug 12, 2019

#1821 in Magic Beans

Download history 77/week @ 2022-01-11 51/week @ 2022-01-18 48/week @ 2022-01-25 110/week @ 2022-02-01 109/week @ 2022-02-08 58/week @ 2022-02-15 91/week @ 2022-02-22 91/week @ 2022-03-01 121/week @ 2022-03-08 169/week @ 2022-03-15 157/week @ 2022-03-22 76/week @ 2022-03-29 99/week @ 2022-04-05 95/week @ 2022-04-12 99/week @ 2022-04-19 128/week @ 2022-04-26

440 downloads per month

MIT/Apache

63KB
1.5K SLoC

Contract address

Provides a function to create an ethereum contract address.

Examples

Create an ethereum address from sender and nonce.

use contract_address::{
	Address, U256, ContractAddress
};
use std::str::FromStr;

let sender = Address::from_str("0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6").unwrap();
let contract_address = ContractAddress::from_sender_and_nonce(&sender, &U256::zero());

Dependencies

~500KB