setController method
Future<String>
setController(
- EthereumAddress controller,
- bool enabled, {
- required Credentials credentials,
- Transaction? transaction,
The optional transaction
parameter can be used to override parameters
like the gas price, nonce and max gas. The data
and to
fields will be
set by the contract.
Implementation
Future<String> setController(_i1.EthereumAddress controller, bool enabled,
{required _i1.Credentials credentials,
_i1.Transaction? transaction}) async {
final function = self.abi.functions[7];
assert(checkSignature(function, 'e0dba60f'));
final params = [controller, enabled];
return write(credentials, transaction, function, params);
}