You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
big integer types (u64, u128, u256, felt252, ContractAddress) are being converted as number, while they should be bigint or BigNumberish.
// Type definition for `pistols::models::challenge::Challenge` structexportinterfaceChallenge{
fieldOrder: string[];
duel_id: number;// u128 should be: bigint
seed: number;// u128 should be: bigint
table_id: number;// felt252 should be: bigint
premise: Premise;
quote: number;// felt252 should be: bigint
address_a: string;// ContractAddress should be: bigint
address_b: string;// ContractAddress should be: bigint
duelist_id_a: number;// u128 should be: bigint
duelist_id_b: number;// u128 should be: bigint
state: ChallengeState;
winner: number;
timestamp_start: number;// u64 should be: bigint
timestamp_end: number;// u64 should be: bigint}
contracts.gen.ts
calls to provider.execute have the wrong number of parameters (missing namespace)
if I add the namespace manually, there's another error on entryPoint:
any function with an argument named account generates a Duplicate identifier 'account'.ts(2300) error:
interfaces that include snake_case and camelCase versions of the same functions have their functions duplicated, as the generator converts snake_casr to camelCase.
some types are missing the namespace. ex: [Payment](payment: Payment) should be payment: models.Payment
Describe the bug
Source files generated by sozo --typescript have errors.
To Reproduce
thai
cd dojo && git checkout thai && sozo build --typescript
dojo/bindings/typescript/contracts.gen.ts
anddojo/bindings/typescript/models.gen.ts
or just get the generated files here:
models.gen.ts
number
, while they should bebigint
orBigNumberish
.contracts.gen.ts
provider.execute
have the wrong number of parameters (missing namespace)entryPoint
:account
generates aDuplicate identifier 'account'.ts(2300)
error:[Payment](payment: Payment)
should bepayment: models.Payment
The text was updated successfully, but these errors were encountered: