getFallbackETHCAIPAddress function

String getFallbackETHCAIPAddress({
  1. ENV? env,
  2. required String address,
})

Implementation

String getFallbackETHCAIPAddress({ENV? env, required String address}) {
  env ??= providerContainer.read(envProvider);
  int chainId = 1; // by default PROD
  if (env == ENV.dev || env == ENV.staging || env == ENV.local) {
    chainId = 5;
  }
  return 'eip155:$chainId:$address';
}