From 4008204a8ac6eda300689bcc47dd045e2830ed26 Mon Sep 17 00:00:00 2001 From: Benjamin DeMann Date: Tue, 25 Jun 2024 13:19:08 -0600 Subject: [PATCH] hack to get past error --- src/lib/stable/system_types/rejection_code.ts | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/src/lib/stable/system_types/rejection_code.ts b/src/lib/stable/system_types/rejection_code.ts index 0f07e57c48..9b6fd09520 100644 --- a/src/lib/stable/system_types/rejection_code.ts +++ b/src/lib/stable/system_types/rejection_code.ts @@ -4,13 +4,17 @@ import { IDL } from '..'; * Indicates an error was encountered during a canister method. */ export const RejectionCode = IDL.Variant({ - NoError: IDL.Null, - SysFatal: IDL.Null, - SysTransient: IDL.Null, - DestinationInvalid: IDL.Null, - CanisterReject: IDL.Null, - CanisterError: IDL.Null, - Unknown: IDL.Null + NoError: IDL.Null + // TODO we are getting some sort of error when all of these are added in. It + // is happening during what looks like a sort of the properties (which might + // explain why one is fine (it doesn't need to be sorted)). The error is + // ReferenceError: 'TextEncoder' is not defined + // SysFatal: IDL.Null, + // SysTransient: IDL.Null, + // DestinationInvalid: IDL.Null + // CanisterReject: IDL.Null, + // CanisterError: IDL.Null, + // Unknown: IDL.Null, }); export type RejectionCode =