Skip to content

Commit

Permalink
pr fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bdemann committed Sep 27, 2023
1 parent 0d640d5 commit 33ec6c6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
10 changes: 0 additions & 10 deletions src/lib_new/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,17 +169,7 @@ export function toIDLType(idl: CandidClass, parents: Parent[]): IDL.Type<any> {
return idl.getIDL(parents);
}
if (idl._azleRecLambda) {
// console.log(
// 'WE ARE LOOKING AT A RECURSIVE THING',
// `"${idl.name}"`,
// JSON.stringify(idl)
// );
// idl._azleRecLambda = false;
// console.log(idl);
// console.log(idl());
return toIDLType(idl(), [...parents, idl._azleName]);
// return idl().getIDL([...parents, idl.name]);
// throw 'hmm';
}
// if (idl.display === undefined || idl.getIDL === undefined) {
// throw Error(`${JSON.stringify(idl)} is not a candid type`);
Expand Down
3 changes: 0 additions & 3 deletions src/lib_new/visitors/encode_decode/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,5 @@ export function visitRec<T>(
ty: IDL.ConstructType<T>,
data: VisitorData
): VisitorResult {
// return data.js_data;
// TODO I imagine that this will be the spot of much torment when we get
// to doing actual recursive types, maybe
return ty.accept(visitor, data);
}

0 comments on commit 33ec6c6

Please sign in to comment.