message: Throw an error if the creation transaction is reverted
diff: @@ -7,7 +7,14 @@ export async function waitUntilSchedulePaymentTransactionMined(
  ) {
  return poll(
  () => hubRequest(hubRootUrl, `api/scheduled-payments/${scheduledPaymentId}`, authToken, 'GET'),
  - (response: any) => response.data.attributes['creation-block-number'] != null,
  + (response: any) => {
  + let attributes = response.data.attributes;
  + let error = attributes['creation-transaction-error'];
  + if (error) {
  + throw new Error(`Transaction reverted: ${error}`);
  + }
  + return attributes['creation-block-number'] != null;
  + },
  1000
  );
  }
  