getCAIPWithChainId function
Implementation
String getCAIPWithChainId(String address, int chainId, [String? msg]) {
if (isValidETHAddress(address)) {
if (!address.contains('eip155:')) {
return 'eip155:$chainId:$address';
} else {
return address;
}
} else {
throw Error();
}
}