Crate tetsy_contract_address[][src]

Contract address

Provides a function to create a vapory contract address.

Examples

Create an vapory address from sender and nonce.

use tetsy_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());

Structs

ContractAddress

Represents an vapory contract address

H256

Fixed-size uninterpreted hash type with 32 bytes (256 bits) size.

U256

Little-endian large integer type

Type Definitions

Address