Skip to content

Commit 313dff5

Browse files
committed
fix: struct data
1 parent fd2bdc0 commit 313dff5

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

src/contract.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { BigNumberish, toBN } from './utils/number';
77
import { getSelectorFromName } from './utils/stark';
88

99
export type Args = {
10-
[inputName: string]: string | string[] | { type: 'struct'; [k: string]: string };
10+
[inputName: string]: string | string[] | { type: 'struct'; [k: string]: BigNumberish };
1111
};
1212
export type Calldata = string[];
1313

src/utils/stark.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,3 @@ export function formatSignature(sig?: [BigNumberish, BigNumberish]): [string, st
4949
return [];
5050
}
5151
}
52-
53-
export function compileStructToCalldata<S>(struct: S): string[] {
54-
return Object.values(struct);
55-
}

0 commit comments

Comments
 (0)