getSighash method

String getSighash(
  1. String function
)

Return the sighash (or Function Selector) for function.


iface.getSighash("balanceOf");
// '0x70a08231'

iface.getSighash("balanceOf(address)");
// '0x70a08231'

Implementation

String getSighash(String function) => impl.getSighash(function);