Skip to content

Commit

Permalink
feat: make Abi and CONTRACT_ABI types compatible with abiwan
Browse files Browse the repository at this point in the history
  • Loading branch information
haroune-mohammedi committed Jan 9, 2024
1 parent 4cd1aa2 commit 9007816
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/types/api/rpcspec/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ export type SIERRA_ENTRY_POINT = {
function_idx: number;
};

export type CONTRACT_ABI = CONTRACT_ABI_ENTRY[];
export type CONTRACT_ABI = readonly CONTRACT_ABI_ENTRY[];

export type CONTRACT_ABI_ENTRY = {
selector: FELT;
Expand Down
2 changes: 1 addition & 1 deletion src/types/lib/contract/abi.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** ABI */
export type Abi = Array<FunctionAbi | EventAbi | StructAbi | any>;
export type Abi = ReadonlyArray<FunctionAbi | EventAbi | StructAbi | any>;

// Basic elements
export type AbiEntry = { name: string; type: 'felt' | 'felt*' | string };
Expand Down

0 comments on commit 9007816

Please sign in to comment.