getChainId method

  1. @override
Future<BigInt> getChainId(
  1. EthereumProvider provider
)
override

Returns the ID of the chain the contract is currently deployed on.

Implementation

@override
Future<BigInt> getChainId(EthereumProvider provider) async {
  return queryContract<BigInt>(
    provider: provider,
    functionName: SafeContractFunction.getChainId,
  );
}