getSighashByFragment method

String getSighashByFragment(
  1. Fragment<_FragmentImpl> fragment
)

Return the sighash (or Function Selector) for fragment.


iface.getSighash(iface.fragments.first);
// '0x70a08231'

Implementation

String getSighashByFragment(Fragment fragment) =>
    impl.getSighash(fragment.impl);