Skip to content

Latest commit

 

History

History
77 lines (34 loc) · 1.82 KB

account.md

File metadata and controls

77 lines (34 loc) · 1.82 KB

Module 0x3::account

Struct AccountPlaceholder

Just using to get Account module signer

Constants

Cannot create account because address is reserved

const ErrorAddressReserved: u64 = 1;

const ErrorAddressNotReserved: u64 = 2;

Function create_account

Create a new account with the given address, the address must not be reserved

public(friend) fun create_account(new_address: address): signer

Function create_system_account

Create a new account with the given address, the address must be reserved as system address

public(friend) fun create_system_account(new_address: address): signer