| Crates.io | contract-address |
| lib.rs | contract-address |
| version | 0.6.0 |
| created_at | 2019-08-12 14:23:59.933159+00 |
| updated_at | 2021-01-27 16:54:24.555559+00 |
| description | A utility crate to create an ethereum contract address |
| homepage | https://github.com/paritytech/parity-common |
| repository | https://github.com/paritytech/parity-common |
| max_upload_size | |
| id | 156140 |
| size | 6,863 |
Provides a function to create an ethereum contract address.
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());