Skip to content

Latest commit

 

History

History
67 lines (32 loc) · 1.77 KB

AccountScripts.md

File metadata and controls

67 lines (32 loc) · 1.77 KB

Module 0x1::AccountScripts

Function enable_auto_accept_token

Enable account's auto-accept-token feature. The script function is reenterable.

public(script) fun enable_auto_accept_token(account: signer)
Implementation
public(script) fun enable_auto_accept_token(account: signer) {
    Account::set_auto_accept_token(&account, true);
}

Function disable_auto_accept_token

Disable account's auto-accept-token feature. The script function is reenterable.

public(script) fun disable_auto_accept_token(account: signer)
Implementation
public(script) fun disable_auto_accept_token(account: signer) {
    Account::set_auto_accept_token(&account, false);
}