| Crates.io | tetsy-contract-address |
| lib.rs | tetsy-contract-address |
| version | 0.6.1 |
| created_at | 2021-02-18 13:08:53.587824+00 |
| updated_at | 2021-06-08 02:36:31.790057+00 |
| description | A utility crate to create a Vapory Contract Address |
| homepage | https://github.com/tetcoin/tetsy-common |
| repository | https://github.com/tetcoin/tetsy-common |
| max_upload_size | |
| id | 357039 |
| size | 7,000 |
Provides a function to create a vapory contract address.
Create a vapory address from sender and nonce.
use tetsy_contract_address::{
Address, U256, TetsyContractAddress
};
use std::str::FromStr;
let sender = Address::from_str("0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6").unwrap();
let tetsy_contract_address = TetsyContractAddress::from_sender_and_nonce(&sender, &U256::zero());