0x1::AccountScripts
use 0x1::Account;
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)
public(script) fun enable_auto_accept_token(account: signer) {
Account::set_auto_accept_token(&account, true);
}
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)
public(script) fun disable_auto_accept_token(account: signer) {
Account::set_auto_accept_token(&account, false);
}