Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
benesjan committed Jan 14, 2025
1 parent 4b7f1cf commit f8e9695
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions yarn-project/aztec.js/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export {
type L2AmountClaim,
type L2AmountClaimWithRecipient,
type L2Claim,
type U128Like,
type WrappedFieldLike,
} from './utils/index.js';

Expand Down
7 changes: 4 additions & 3 deletions yarn-project/builder/src/contract-interface-gen/typescript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ function abiTypeToTypescript(type: ABIParameter['type']): string {
if (isFunctionSelectorStruct(type)) {
return 'FunctionSelectorLike';
}
if (isWrappedFieldStruct(type)) {
return 'WrappedFieldLike';
}
if (isU128Struct(type)) {
return 'U128Like';
}
if (isWrappedFieldStruct(type)) {
return 'WrappedFieldLike';
}
return `{ ${type.fields.map(f => `${f.name}: ${abiTypeToTypescript(f.type)}`).join(', ')} }`;
default:
throw new Error(`Unknown type ${type}`);
Expand Down Expand Up @@ -344,6 +344,7 @@ import {
PublicKeys,
type UnencryptedL2Log,
type Wallet,
type U128Like,
type WrappedFieldLike,
} from '@aztec/aztec.js';
${artifactStatement}
Expand Down

0 comments on commit f8e9695

Please sign in to comment.