Skip to content

Commit

Permalink
Fix settings + redeploy on slotdev
Browse files Browse the repository at this point in the history
  • Loading branch information
Matth26 committed Nov 10, 2024
1 parent e6bc6a7 commit d46d828
Show file tree
Hide file tree
Showing 3 changed files with 364 additions and 67 deletions.
4 changes: 3 additions & 1 deletion client/src/dojo/contractModels.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,14 @@ export function defineContractComponents(world: World) {
game_price: RecsType.BigInt,
zkorp_address: RecsType.BigInt,
erc721_address: RecsType.BigInt,
are_games_paused: RecsType.Boolean,
are_chests_unlock: RecsType.Boolean,
},
{
metadata: {
namespace: "zkube",
name: "Settings",
types: ["u8", "bool", "u256", "felt252", "felt252"],
types: ["u8", "bool", "u256", "felt252", "felt252", "bool", "bool"],
customTypes: [],
},
},
Expand Down
4 changes: 4 additions & 0 deletions client/src/dojo/game/models/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,14 @@ export class Settings {
zkorp_address: bigint;
erc721_address: bigint;
game_price: bigint;
are_games_paused: boolean;
are_chests_unlock: boolean;

constructor(settings: ComponentValue) {
this.zkorp_address = settings.zkorp_address;
this.erc721_address = settings.erc721_address;
this.game_price = settings.game_price;
this.are_games_paused = settings.are_games_paused;
this.are_chests_unlock = settings.are_chests_unlock;
}
}
Loading

0 comments on commit d46d828

Please sign in to comment.