makeReadStateFromUpdate function

Map<String, dynamic> makeReadStateFromUpdate(
  1. Map update
)

Implementation

Map<String, dynamic> makeReadStateFromUpdate(Map update) {
  return {
    'sender': update['sender'],
    'paths': [
      ['request_status'.plainToU8a(), httpCanisterUpdateId(update)],
    ],
    'ingress_expiry': update['ingress_expiry'],
  };
}