4 releases (2 breaking)

0.6.1 Jun 8, 2021
0.6.0 Feb 18, 2021
0.5.0 Mar 10, 2021
0.3.0 Feb 20, 2021

#1594 in Magic Beans

MIT/Apache

63KB
1.5K SLoC

Contract address

Provides a function to create a vapory contract address.

Examples

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

Dependencies

~505KB