isValidNFTCAIP10Address function

bool isValidNFTCAIP10Address(
  1. String realCAIP10
)

Implementation

bool isValidNFTCAIP10Address(String realCAIP10) {
  final walletComponent = realCAIP10.split(':');
  if (double.tryParse(walletComponent[1]) == null) return false;
  return walletComponent.length == 3 &&
      walletComponent[0] == 'eip155' &&
      isAddress(walletComponent[2]);
}