Skip to content

Commit

Permalink
✏️ Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
bal7hazar committed Oct 18, 2024
1 parent a37e8e8 commit b5a128b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@
"type": "core::felt252"
},
{
"name": "points",
"name": "karma",
"type": "core::integer::u16"
}
],
Expand All @@ -320,7 +320,7 @@
"type": "core::felt252"
},
{
"name": "points",
"name": "karma",
"type": "core::integer::u16"
}
],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
kind = "DojoContract"
class_hash = "0x1eb79fe27b41d6d6bf10bc5c4f5ea2f5f33b3378908df004597eebfae6fe2ac"
original_class_hash = "0x1eb79fe27b41d6d6bf10bc5c4f5ea2f5f33b3378908df004597eebfae6fe2ac"
class_hash = "0x51f892652a06d0701a0d4275ab7dd5ba3c79ef44d91a7083742ce96f96a0f12"
original_class_hash = "0x51f892652a06d0701a0d4275ab7dd5ba3c79ef44d91a7083742ce96f96a0f12"
base_class_hash = "0x0"
abi = "manifests/dev/base/abis/contracts/game_center-Actions-38eede8c.json"
reads = []
Expand Down
12 changes: 6 additions & 6 deletions contracts/src/systems/actions.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ trait IActions<TContractState> {
world_address: felt252,
namespace: felt252,
identifier: felt252,
points: u16
karma: u16
);
fn update_achievement(
self: @TContractState,
world_address: felt252,
namespace: felt252,
identifier: felt252,
points: u16
karma: u16
);
fn publish_achievement(
self: @TContractState, world_address: felt252, namespace: felt252, identifier: felt252
Expand Down Expand Up @@ -204,29 +204,29 @@ mod Actions {
world_address: felt252,
namespace: felt252,
identifier: felt252,
points: u16,
karma: u16,
) {
// [Check] Caller is the game owner
let world = self.world();
self.controllable.assert_is_game_owner(world, world_address, namespace);
// [Effect] Register achievement
self
.registrable
.register_achievement(world, world_address, namespace, identifier, points)
.register_achievement(world, world_address, namespace, identifier, karma)
}

fn update_achievement(
self: @ContractState,
world_address: felt252,
namespace: felt252,
identifier: felt252,
points: u16,
karma: u16,
) {
// [Check] Caller is the game owner
let world = self.world();
self.controllable.assert_is_game_owner(world, world_address, namespace);
// [Effect] Update achievement
self.registrable.update_achievement(world, world_address, namespace, identifier, points)
self.registrable.update_achievement(world, world_address, namespace, identifier, karma)
}

fn publish_achievement(
Expand Down

0 comments on commit b5a128b

Please sign in to comment.