getNonce method Null safety
Helper method to get the nonce for a given accountId for the contract specified by the contractId. Used for contract auth.
Implementation
Future<int> getNonce(String accountId, String contractId) async {
Address address = Address.forAccountId(accountId);
return getNonceForAddress(address, contractId);
}