unpackContractFields function

Future<Map<String, dynamic>?> unpackContractFields({
  1. required String contractAbi,
  2. required String boc,
  3. required bool allowPartial,
})

Unpack contract fields. Returns optional json-encoded Map<String, Token> or throw error

Implementation

Future<Map<String, dynamic>?> unpackContractFields({
  required String contractAbi,
  required String boc,
  required bool allowPartial,
}) async {
  final result = await createLib().unpackContractFields(
    contractAbi: contractAbi,
    boc: boc,
    allowPartial: allowPartial,
  );
  if (result == null) return null;

  return jsonDecode(result) as Map<String, dynamic>;
}