addHexPrefix function

String addHexPrefix(
  1. String address
)

Implementation

String addHexPrefix(String address) {
  if (address.startsWith('0x')) {
    return address;
  }
  return '0x$address';
}