EthereumRequestCall.fromMethod constructor
- @Deprecated("Use EthereumRequestFunctionCall instead.")
- required String contractAddress,
- required AbiFunctionFragment function,
- required List params,
- String? from,
- BlockTagOrNumber? blockNumber = BlockTagOrNumber.latest,
Implementation
@Deprecated("Use EthereumRequestFunctionCall instead.")
factory EthereumRequestCall.fromMethod(
{required String contractAddress,
required AbiFunctionFragment function,
required List<dynamic> params,
String? from,
BlockTagOrNumber? blockNumber = BlockTagOrNumber.latest}) {
final rawBytes = function.encode(params);
return EthereumRequestCall._(
contractAddress,
BytesUtils.toHexString(rawBytes, prefix: '0x'),
from,
function,
blockNumber);
}