soliditySha256 static method

String soliditySha256(
  1. List<String> types,
  2. List values
)

Returns the SHA2-256 of the non-standard encoded values packed according to their respective type in types.


utils.soliditySha256([ "int16", "uint48" ], [ -1, 12 ])
// '0xa5580fb602f6e2ba9c588011dc4e6c2335e0f5d970dc45869db8f217efc6911a'

Implementation

external static String soliditySha256(
    List<String> types, List<dynamic> values);