Skip to content

Commit

Permalink
hack to get past error
Browse files Browse the repository at this point in the history
  • Loading branch information
bdemann committed Jun 25, 2024
1 parent 5e9fade commit 4008204
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions src/lib/stable/system_types/rejection_code.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down

0 comments on commit 4008204

Please sign in to comment.