Skip to content

Commit

Permalink
fix: struct data
Browse files Browse the repository at this point in the history
  • Loading branch information
janek26 committed Dec 1, 2021
1 parent fd2bdc0 commit 313dff5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion src/contract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { BigNumberish, toBN } from './utils/number';
import { getSelectorFromName } from './utils/stark';

export type Args = {
[inputName: string]: string | string[] | { type: 'struct'; [k: string]: string };
[inputName: string]: string | string[] | { type: 'struct'; [k: string]: BigNumberish };
};
export type Calldata = string[];

Expand Down
4 changes: 0 additions & 4 deletions src/utils/stark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,3 @@ export function formatSignature(sig?: [BigNumberish, BigNumberish]): [string, st
return [];
}
}

export function compileStructToCalldata<S>(struct: S): string[] {
return Object.values(struct);
}

0 comments on commit 313dff5

Please sign in to comment.